Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
681d2014
Commit
681d2014
authored
Nov 16, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add HEAACWAVEINFO and HEAACWAVEFORMAT definitions.
parent
f24b20f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
mfplat.c
dlls/winegstreamer/mfplat.c
+1
-17
mmreg.h
include/mmreg.h
+16
-0
No files found.
dlls/winegstreamer/mfplat.c
View file @
681d2014
...
...
@@ -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
;
...
...
include/mmreg.h
View file @
681d2014
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment