Pass a resource number to os_start_sample() and friends.
authorDavid Griffith <dave@661.org>
Fri, 20 Dec 2013 08:32:39 +0000 (00:32 -0800)
committerDavid Griffith <dave@661.org>
Fri, 20 Dec 2013 08:32:39 +0000 (00:32 -0800)
Needed to support sound mixing.

src/common/sound.c

index 37c98e93f4aec75eb20980f6010141aba0ba965a..ea0e3570e615b4b5f0927f7d74f57ba75c296f4a 100644 (file)
@@ -189,10 +189,10 @@ void z_sound_effect (void)
            start_sample (number, lo (volume), hi (volume), (zargc == 4) ? zargs[3] : 0);
            break;
        case EFFECT_STOP:
-           os_stop_sample ();
+           os_stop_sample (number);
            break;
        case EFFECT_FINISH_WITH:
-           os_finish_with_sample ();
+           os_finish_with_sample (number);
            break;
 
        }