X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfsound%2Fpulseaudio.c;h=1dadd88a4fdbdca0b64dbe932b67f5c7fdd8ff62;hp=60051557738e5d077ed55d28339cbbcc4da1fd9e;hb=89cb20587977b8702a1f96591852feac394ecc4b;hpb=ef79bbde537d6b9c745a7d86cb9df1d04c35590d diff --git a/plugins/dfsound/pulseaudio.c b/plugins/dfsound/pulseaudio.c index 60051557..1dadd88a 100644 --- a/plugins/dfsound/pulseaudio.c +++ b/plugins/dfsound/pulseaudio.c @@ -195,10 +195,7 @@ void SetupSound (void) // Set sample spec //////////////////////////////////////////////////////// device.spec.format = PA_SAMPLE_S16NE; - if (iDisStereo) - device.spec.channels = 1; - else - device.spec.channels = 2; + device.spec.channels = 2; device.spec.rate = settings.frequency; pa_buffer_attr buffer_attributes; @@ -306,7 +303,7 @@ unsigned long SoundGetBytesBuffered (void) int playing = 0; if ((device.mainloop == NULL) || (device.api == NULL) || ( device.context == NULL) || (device.stream == NULL)) - return SOUNDSIZE; + return 1; pa_threaded_mainloop_lock (device.mainloop); free_space = pa_stream_writable_size (device.stream); @@ -318,7 +315,7 @@ unsigned long SoundGetBytesBuffered (void) { // Don't buffer anymore, just play //fprintf (stderr, "Not buffering.\n"); - return SOUNDSIZE; + return 1; } else {