diff --git a/libao2/ao_alsa5.c b/libao2/ao_alsa5.c index fbece5d184..fd037c0f03 100644 --- a/libao2/ao_alsa5.c +++ b/libao2/ao_alsa5.c @@ -189,8 +189,10 @@ static int init(int rate_hz, int channels, int format, int flags) printf("alsa-init: pcm channel info error: %s\n", snd_strerror(err)); return(0); } +#ifndef __QNX__ if (chninfo.buffer_size) ao_buffersize = chninfo.buffer_size; +#endif if (verbose) printf("alsa-init: setting preferred buffer size from driver: %d bytes\n", ao_buffersize);