pyglet background sound + sound effects
Hi I was wondering if it is possible to play a background music and sound effects simultaneously using pyglet.I know we can play music with streaming=True
and sound effects with streaming=False. Also there is a way of playing stuff one after another but could not find a way to do it at the same time. pygame provides this feature i.e, pygame.music and pygame.sound could somebody please tell me if this is possible using pyglet.
(log in to comment)
richard on 2010/08/04 05:50:
pyglet makes no distinction between music and sound effects; the streaming arg confers no "I'm music" property (it only controls whether the media file is loaded entirely into memory or streamed from disk).Depending on the level of control you want you could just load the music and .play() it. Or you could create a Player giving you the option to pause, fade, loop, etc.