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
b5224703
Commit
b5224703
authored
Mar 12, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wasapi: write timings to debug log
parent
889b477b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
modules/audio_output/wasapi.c
modules/audio_output/wasapi.c
+15
-2
No files found.
modules/audio_output/wasapi.c
View file @
b5224703
...
...
@@ -213,9 +213,12 @@ static HRESULT Flush(aout_stream_t *s)
hr
=
IAudioClient_Reset
(
sys
->
client
);
if
(
FAILED
(
hr
))
msg_Warn
(
s
,
"cannot reset stream (error 0x%lx)"
,
hr
);
else
{
msg_Dbg
(
s
,
"reset"
);
sys
->
written
=
0
;
}
else
msg_Warn
(
s
,
"cannot reset stream (error 0x%lx)"
,
hr
);
return
hr
;
}
...
...
@@ -380,6 +383,16 @@ static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict fmt,
msg_Err
(
s
,
"cannot get buffer size (error 0x%lx)"
,
hr
);
goto
error
;
}
msg_Dbg
(
s
,
"buffer size : %"
PRIu32
" frames"
,
sys
->
frames
);
REFERENCE_TIME
latT
,
defT
,
minT
;
if
(
SUCCEEDED
(
IAudioClient_GetStreamLatency
(
sys
->
client
,
&
latT
))
&&
SUCCEEDED
(
IAudioClient_GetDevicePeriod
(
sys
->
client
,
&
defT
,
&
minT
)))
{
msg_Dbg
(
s
,
"maximum latency: %"
PRIu64
"00 ns"
,
latT
);
msg_Dbg
(
s
,
"default period : %"
PRIu64
"00 ns"
,
defT
);
msg_Dbg
(
s
,
"minimum period : %"
PRIu64
"00 ns"
,
minT
);
}
sys
->
rate
=
fmt
->
i_rate
;
sys
->
bytes_per_frame
=
fmt
->
i_bytes_per_frame
;
...
...
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