if( pollCapture )
{
capturePfds = self->pfds;
- PA_ENSURE( PaAlsaStreamComponent_BeginPolling( &self->capture, capturePfds ) );
+ PaError res = PaAlsaStreamComponent_BeginPolling( &self->capture, capturePfds );
+ if( res != paNoError)
+ {
+ xrun = 1;
+ goto end;
+ }
totalFds += self->capture.nfds;
}
if( pollPlayback )
{
/* self->pfds is in effect an array of fds; if necessary, index past the capture fds */
playbackPfds = self->pfds + (pollCapture ? self->capture.nfds : 0);
- int res = PaAlsaStreamComponent_BeginPolling( &self->playback, playbackPfds );
+ PaError res = PaAlsaStreamComponent_BeginPolling( &self->playback, playbackPfds );
if( res != paNoError)
{
xrun = 1;