Commit cf15eafd authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#1966] Display sample specs at pulseaudio stream creation

parent 141b4b69
...@@ -130,6 +130,8 @@ AudioStream::stream_state_callback (pa_stream* s, void* user_data) ...@@ -130,6 +130,8 @@ AudioStream::stream_state_callback (pa_stream* s, void* user_data)
_info("Audio: The state of the stream changed"); _info("Audio: The state of the stream changed");
assert (s); assert (s);
char str[PA_SAMPLE_SPEC_SNPRINT_MAX];
m = (pa_threaded_mainloop*) user_data; m = (pa_threaded_mainloop*) user_data;
assert (m); assert (m);
...@@ -151,6 +153,7 @@ AudioStream::stream_state_callback (pa_stream* s, void* user_data) ...@@ -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: prebug %u", pa_stream_get_buffer_attr(s)->prebuf);
_debug("Audio: minreq %u", pa_stream_get_buffer_attr(s)->minreq); _debug("Audio: minreq %u", pa_stream_get_buffer_attr(s)->minreq);
_debug("Audio: fragsize %u", pa_stream_get_buffer_attr(s)->fragsize); _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); // pa_xfree (buffattr);
break; break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment