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
e1b79479
Commit
e1b79479
authored
Mar 01, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output_thread: log audio format in a debug message
To aid debugging, print the audio format of the output plugin in a debug message, and print information about PCM conversion.
parent
a81a84ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
output_thread.c
src/output_thread.c
+16
-0
No files found.
src/output_thread.c
View file @
e1b79479
...
...
@@ -134,6 +134,22 @@ static gpointer audio_output_task(gpointer arg)
if
(
ret
)
{
pcm_convert_init
(
&
ao
->
convert_state
);
ao
->
open
=
true
;
g_debug
(
"opened plugin=%s name=
\"
%s
\"
"
"audio_format=%u:%u:%u"
,
ao
->
plugin
->
name
,
ao
->
name
,
ao
->
out_audio_format
.
sample_rate
,
ao
->
out_audio_format
.
bits
,
ao
->
out_audio_format
.
channels
);
if
(
!
audio_format_equals
(
&
ao
->
in_audio_format
,
&
ao
->
out_audio_format
))
g_debug
(
"converting from %u:%u:%u"
,
ao
->
in_audio_format
.
sample_rate
,
ao
->
in_audio_format
.
bits
,
ao
->
in_audio_format
.
channels
);
}
else
{
g_warning
(
"Failed to open
\"
%s
\"
[%s]: %s"
,
ao
->
name
,
ao
->
plugin
->
name
,
...
...
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