1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

include: Add HEAACWAVEINFO and HEAACWAVEFORMAT definitions.

This commit is contained in:
Rémi Bernon 2023-11-16 11:31:22 +01:00 committed by Alexandre Julliard
parent f24b20f01e
commit 681d201462
2 changed files with 17 additions and 17 deletions

View File

@ -25,6 +25,7 @@
#include "initguid.h"
#include "d3d9types.h"
#include "mfapi.h"
#include "mmreg.h"
#include "wine/debug.h"
#include "wine/list.h"
@ -633,23 +634,6 @@ static void mf_media_type_to_wg_format_audio(IMFMediaType *type, const GUID *sub
static void mf_media_type_to_wg_format_audio_mpeg4(IMFMediaType *type, const GUID *subtype, struct wg_format *format)
{
/* Audio specific config is stored at after HEAACWAVEINFO in MF_MT_USER_DATA
* https://docs.microsoft.com/en-us/windows/win32/api/mmreg/ns-mmreg-heaacwaveformat
*/
typedef struct
{
WORD wPayloadType;
WORD wAudioProfileLevelIndication;
WORD wStructType;
WORD wReserved1;
DWORD dwReserved2;
} HEAACWAVEINFO;
typedef struct
{
HEAACWAVEINFO wfInfo;
BYTE pbAudioSpecificConfig[1];
} HEAACWAVEFORMAT;
BYTE buffer[64];
HEAACWAVEFORMAT *user_data = (HEAACWAVEFORMAT *)buffer;
UINT32 codec_data_size;

View File

@ -645,6 +645,22 @@ typedef struct mpeg1waveformat_tag {
typedef MPEG1WAVEFORMAT *PMPEG1WAVEFORMAT,
*NPMPEG1WAVEFORMAT, *LPMPEG1WAVEFORMAT;
typedef struct heaacwaveinfo_tag
{
WAVEFORMATEX wfx;
WORD wPayloadType;
WORD wAudioProfileLevelIndication;
WORD wStructType;
WORD wReserved1;
DWORD dwReserved2;
} HEAACWAVEINFO, *PHEAACWAVEINFO;
typedef struct heaacwaveformat_tag
{
HEAACWAVEINFO wfInfo;
BYTE pbAudioSpecificConfig[1];
} HEAACWAVEFORMAT, *PHEAACWAVEFORMAT;
#define ACM_MPEG_LAYER1 0x0001
#define ACM_MPEG_LAYER2 0x0002
#define ACM_MPEG_LAYER3 0x0004