From f5ad14d634973ff6b340853df8b61bbdf61e0060 Mon Sep 17 00:00:00 2001 From: yenatch Date: Wed, 13 Nov 2013 12:46:18 -0500 Subject: audio: pass in a channel id to sound commands --- pokemontools/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemontools/audio.py b/pokemontools/audio.py index 1ace4b1..1cce1fe 100644 --- a/pokemontools/audio.py +++ b/pokemontools/audio.py @@ -131,7 +131,7 @@ class Channel: while not done: cmd = rom[self.address] - class_ = self.get_sound_class(cmd)(address=self.address) + class_ = self.get_sound_class(cmd)(address=self.address, channel=self.channel) # notetype loses the intensity param on channel 4 if class_.macro_name == 'notetype': -- cgit v1.2.3