Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
c242a515
Commit
c242a515
authored
Dec 06, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wasapi: remove redundant code
The MTA is fully taken care of by mmdevice.c.
parent
f4a986cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
modules/audio_output/wasapi.c
modules/audio_output/wasapi.c
+0
-14
No files found.
modules/audio_output/wasapi.c
View file @
c242a515
...
...
@@ -65,18 +65,6 @@ static UINT64 GetQPC(void)
return
(
d
.
quot
*
10000000
)
+
((
d
.
rem
*
10000000
)
/
freq
.
QuadPart
);
}
static
void
Enter
(
void
)
{
HRESULT
hr
=
CoInitializeEx
(
NULL
,
COINIT_MULTITHREADED
);
if
(
unlikely
(
FAILED
(
hr
)))
abort
();
}
static
void
Leave
(
void
)
{
CoUninitialize
();
}
typedef
struct
aout_stream_sys
{
IAudioClient
*
client
;
...
...
@@ -334,9 +322,7 @@ static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict fmt,
void
*
pv
;
HRESULT
hr
;
Enter
();
hr
=
IMMDevice_Activate
(
dev
,
&
IID_IAudioClient
,
CLSCTX_ALL
,
NULL
,
&
pv
);
Leave
();
if
(
FAILED
(
hr
))
{
msg_Err
(
s
,
"cannot activate client (error 0x%lx)"
,
hr
);
...
...
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