Añadidas las nuevas funciones de jailaudio

This commit is contained in:
2024-05-31 19:52:27 +02:00
parent 181ce0ae99
commit 9ae49fcc40
2 changed files with 8 additions and 5 deletions

View File

@@ -221,7 +221,7 @@ JA_Sound_t *JA_LoadSound(const char* filename) {
int JA_PlaySound(JA_Sound_t *sound, const int loop)
{
if (!JA_soundEnabled) return;
if (!JA_soundEnabled) return 0;
int channel = 0;
while (channel < JA_MAX_SIMULTANEOUS_CHANNELS && channels[channel].state != JA_CHANNEL_FREE) { channel++; }