Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ba1d9f3a
Commit
ba1d9f3a
authored
May 16, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
May 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp3dmod: Register DMO.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
58c6ae82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
mp3dmod.c
dlls/mp3dmod/mp3dmod.c
+22
-0
No files found.
dlls/mp3dmod/mp3dmod.c
View file @
ba1d9f3a
...
...
@@ -33,6 +33,11 @@
#include "wine/debug.h"
#include "wine/heap.h"
#include "initguid.h"
DEFINE_GUID
(
WMMEDIATYPE_Audio
,
0x73647561
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
WMMEDIASUBTYPE_MP3
,
0x00000055
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
WMMEDIASUBTYPE_PCM
,
0x00000001
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
WINE_DEFAULT_DEBUG_CHANNEL
(
mp3dmod
);
static
HINSTANCE
mp3dmod_instance
;
...
...
@@ -526,6 +531,18 @@ HRESULT WINAPI DllCanUnloadNow(void)
*/
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
static
const
WCHAR
nameW
[]
=
{
'M'
,
'P'
,
'3'
,
' '
,
'D'
,
'e'
,
'c'
,
'o'
,
'd'
,
'e'
,
'r'
,
' '
,
'D'
,
'M'
,
'O'
,
0
};
DMO_PARTIAL_MEDIATYPE
in
,
out
;
HRESULT
hr
;
in
.
type
=
WMMEDIATYPE_Audio
;
in
.
subtype
=
WMMEDIASUBTYPE_MP3
;
out
.
type
=
WMMEDIATYPE_Audio
;
out
.
subtype
=
WMMEDIASUBTYPE_PCM
;
hr
=
DMORegister
(
nameW
,
&
CLSID_CMP3DecMediaObject
,
&
DMOCATEGORY_AUDIO_DECODER
,
0
,
1
,
&
in
,
1
,
&
out
);
if
(
FAILED
(
hr
))
return
hr
;
return
__wine_register_resources
(
mp3dmod_instance
);
}
...
...
@@ -534,5 +551,10 @@ HRESULT WINAPI DllRegisterServer(void)
*/
HRESULT
WINAPI
DllUnregisterServer
(
void
)
{
HRESULT
hr
;
hr
=
DMOUnregister
(
&
CLSID_CMP3DecMediaObject
,
&
DMOCATEGORY_AUDIO_DECODER
);
if
(
FAILED
(
hr
))
return
hr
;
return
__wine_unregister_resources
(
mp3dmod_instance
);
}
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