diff --git a/src/engine/client/snd.c b/src/engine/client/snd.c index 7ea5e7523..da18a3bee 100644 --- a/src/engine/client/snd.c +++ b/src/engine/client/snd.c @@ -259,6 +259,8 @@ int snd_init() PaStreamParameters params; PaError err = Pa_Initialize(); params.device = Pa_GetDefaultOutputDevice(); + if(params.device < 0) + return 1; params.channelCount = 2; params.sampleFormat = paInt16; params.suggestedLatency = Pa_GetDeviceInfo(params.device)->defaultLowOutputLatency;