Should be NULL not -1

This commit is contained in:
NishiOwO
2025-03-24 22:45:11 +09:00
parent 251dcacaa1
commit 5de2d6b86d

View File

@@ -71,7 +71,7 @@ void givealbuffer_common(const void *buf, const uint8_t src, const int size){
int i;
double gain;
int target_rate;
if(audio[src] == -1) return;
if(audio[src] == NULL) return;
gain = sound_muted ? 0.0 : pow(10.0, (double) sound_gain / 20.0);