Skip to content
Snippets Groups Projects
Commit cf15eafd authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#1966] Display sample specs at pulseaudio stream creation

parent 141b4b69
No related branches found
No related tags found
No related merge requests found
......@@ -130,6 +130,8 @@ AudioStream::stream_state_callback (pa_stream* s, void* user_data)
_info("Audio: The state of the stream changed");
assert (s);
char str[PA_SAMPLE_SPEC_SNPRINT_MAX];
m = (pa_threaded_mainloop*) user_data;
assert (m);
......@@ -151,6 +153,7 @@ AudioStream::stream_state_callback (pa_stream* s, void* user_data)
_debug("Audio: prebug %u", pa_stream_get_buffer_attr(s)->prebuf);
_debug("Audio: minreq %u", pa_stream_get_buffer_attr(s)->minreq);
_debug("Audio: fragsize %u", pa_stream_get_buffer_attr(s)->fragsize);
_debug("Audio: samplespec %s", pa_sample_spec_snprint(str, sizeof(str), pa_stream_get_sample_spec(s)));
// pa_xfree (buffattr);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment