Silence warnings for the pulseaudio player.
Originally committed to SVN as r3465.
This commit is contained in:
parent
3aa7424998
commit
430286cf69
1 changed files with 3 additions and 3 deletions
|
@ -106,7 +106,7 @@ void PulseAudioPlayer::OpenStream()
|
||||||
|
|
||||||
// Connect the context
|
// Connect the context
|
||||||
//printf("Connecting context\n");
|
//printf("Connecting context\n");
|
||||||
pa_context_connect(context, NULL, 0, NULL);
|
pa_context_connect(context, NULL, PA_CONTEXT_NOAUTOSPAWN, NULL);
|
||||||
// Wait for connection
|
// Wait for connection
|
||||||
while (true) {
|
while (true) {
|
||||||
context_notify.Wait();
|
context_notify.Wait();
|
||||||
|
@ -149,7 +149,7 @@ void PulseAudioPlayer::OpenStream()
|
||||||
|
|
||||||
// Connect stream
|
// Connect stream
|
||||||
//printf("Connecting playback stream\n");
|
//printf("Connecting playback stream\n");
|
||||||
paerror = pa_stream_connect_playback(stream, NULL, NULL, PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_NOT_MONOTONOUS|PA_STREAM_AUTO_TIMING_UPDATE, NULL, NULL);
|
paerror = pa_stream_connect_playback(stream, NULL, NULL, (pa_stream_flags_t)(PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_NOT_MONOTONOUS|PA_STREAM_AUTO_TIMING_UPDATE), NULL, NULL);
|
||||||
if (paerror) {
|
if (paerror) {
|
||||||
printf("PulseAudio reported error: %s (%d)\n", pa_strerror(paerror), paerror);
|
printf("PulseAudio reported error: %s (%d)\n", pa_strerror(paerror), paerror);
|
||||||
wxString s(pa_strerror(paerror), wxConvUTF8);
|
wxString s(pa_strerror(paerror), wxConvUTF8);
|
||||||
|
@ -232,7 +232,7 @@ void PulseAudioPlayer::Play(int64_t start,int64_t count)
|
||||||
|
|
||||||
play_start_time = 0;
|
play_start_time = 0;
|
||||||
pa_threaded_mainloop_lock(mainloop);
|
pa_threaded_mainloop_lock(mainloop);
|
||||||
paerror = pa_stream_get_time(stream, &play_start_time);
|
paerror = pa_stream_get_time(stream, (pa_usec_t*) &play_start_time);
|
||||||
pa_threaded_mainloop_unlock(mainloop);
|
pa_threaded_mainloop_unlock(mainloop);
|
||||||
if (paerror) {
|
if (paerror) {
|
||||||
printf("PulseAudio player: Error getting stream time: %s (%d)\n", pa_strerror(paerror), paerror);
|
printf("PulseAudio player: Error getting stream time: %s (%d)\n", pa_strerror(paerror), paerror);
|
||||||
|
|
Loading…
Reference in a new issue