Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Иван Мажукин
mpd
Commits
8efa5c76
Commit
8efa5c76
authored
May 18, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/wasapi: use "%lu" in log calls
"%lu" is portable - it works with both POSIX and Microsoft flavors. Fixes a part of
https://github.com/MusicPlayerDaemon/MPD/issues/1150
parent
28e7be24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
WasapiOutputPlugin.cxx
src/output/plugins/wasapi/WasapiOutputPlugin.cxx
+8
-8
No files found.
src/output/plugins/wasapi/WasapiOutputPlugin.cxx
View file @
8efa5c76
...
...
@@ -607,10 +607,10 @@ WasapiOutput::DoOpen(AudioFormat &audio_format)
throw
MakeHResultError
(
result
,
"Unable to get device period"
);
}
FormatDebug
(
wasapi_output_domain
,
"Default device period: %
I64
u ns, Minimum device period: "
"%
I64
u ns"
,
ns
(
hundred_ns
(
default_device_period
)).
count
(),
ns
(
hundred_ns
(
min_device_period
)).
count
());
"Default device period: %
l
u ns, Minimum device period: "
"%
l
u ns"
,
(
unsigned
long
)
ns
(
hundred_ns
(
default_device_period
)).
count
(),
(
unsigned
long
)
ns
(
hundred_ns
(
min_device_period
)).
count
());
REFERENCE_TIME
buffer_duration
;
if
(
Exclusive
())
{
...
...
@@ -619,8 +619,8 @@ WasapiOutput::DoOpen(AudioFormat &audio_format)
const
REFERENCE_TIME
align
=
hundred_ns
(
ms
(
50
)).
count
();
buffer_duration
=
(
align
/
default_device_period
)
*
default_device_period
;
}
FormatDebug
(
wasapi_output_domain
,
"Buffer duration: %
I64
u ns"
,
size_t
(
ns
(
hundred_ns
(
buffer_duration
)).
count
()
));
FormatDebug
(
wasapi_output_domain
,
"Buffer duration: %
l
u ns"
,
(
unsigned
long
)
ns
(
hundred_ns
(
buffer_duration
)).
count
(
));
if
(
Exclusive
())
{
if
(
HRESULT
result
=
client
->
Initialize
(
...
...
@@ -639,8 +639,8 @@ WasapiOutput::DoOpen(AudioFormat &audio_format)
SampleRate
());
FormatDebug
(
wasapi_output_domain
,
"Aligned buffer duration: %
I64
u ns"
,
size_t
(
ns
(
hundred_ns
(
buffer_duration
)).
count
()
));
"Aligned buffer duration: %
l
u ns"
,
(
unsigned
long
)
ns
(
hundred_ns
(
buffer_duration
)).
count
(
));
client
.
reset
();
client
=
Activate
<
IAudioClient
>
(
*
device
);
result
=
client
->
Initialize
(
...
...
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