diff --git a/libs/audio/renderer/snd_sfx.c b/libs/audio/renderer/snd_sfx.c index 2c93f5870..97d06ceb9 100644 --- a/libs/audio/renderer/snd_sfx.c +++ b/libs/audio/renderer/snd_sfx.c @@ -120,6 +120,11 @@ SND_SFX_StreamOpen (sfx_t *sfx, void *file, int frames; int size; + // if the speed is 0, there is no sound driver (probably failed to connect + // to jackd) + if (!snd_shm->speed) + return 0; + sfx_t *new_sfx = calloc (1, sizeof (sfx_t)); new_sfx->name = sfx->name;