Exclude single-track-types from normal loop & Blacken
This commit is contained in:
parent
d4765556fc
commit
d56ef5f64e
|
@ -34,7 +34,9 @@ class CampAtmo:
|
|||
v(f"{mixer.get_num_channels()} channels set")
|
||||
for name in type_files:
|
||||
self.types[name] = []
|
||||
for k in range(1 if name in self.single_track_types else self.tracks_per_type):
|
||||
for k in range(
|
||||
1 if name in self.single_track_types else self.tracks_per_type
|
||||
):
|
||||
self.types[name].append(mixer.Channel(i))
|
||||
i += 1
|
||||
self.sounds = {}
|
||||
|
@ -69,7 +71,7 @@ class CampAtmo:
|
|||
def run_forever(self):
|
||||
while True:
|
||||
for name, type_channels in self.types.items():
|
||||
if len(self.sounds[name]) == 0:
|
||||
if len(self.sounds[name]) == 0 or name in self.single_track_types:
|
||||
continue
|
||||
self.manage_type_queue(name, type_channels)
|
||||
time.sleep(1)
|
||||
|
|
Loading…
Reference in New Issue