From d479af33afa54fee7c22701c6012a1579ead395f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 19 Jun 2016 22:57:03 +0200 Subject: Fix channels and description with blank lines --- music_sampler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'music_sampler.py') diff --git a/music_sampler.py b/music_sampler.py index d4fc2a7..8dbbc28 100644 --- a/music_sampler.py +++ b/music_sampler.py @@ -13,7 +13,8 @@ screen.fill((250, 250, 250)) draw_lock = helpers.Lock("draw") mapping = helpers.Mapping(screen, draw_lock) -helpers.parse_config(mapping) +channel_number = helpers.parse_config(mapping) +pygame.mixer.set_num_channels(channel_number) mapping.draw() -- cgit v1.2.3