Commit 681d2014 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

include: Add HEAACWAVEINFO and HEAACWAVEFORMAT definitions.

parent f24b20f0
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment