Jump to content

arfy

Members
  • Posts

    1
  • Joined

  • Last visited

arfy's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi, great work! . But, I have a slight problem. I want to be able to have bass only play one sound at a time, instead of mixing multiple sounds together. At the moment, I have a playerTest function that's activated with a hotKey. When I press the hotkey while the sound's still playing, I want it to stop the sound, and restart, or, start a new one. I can't get this to work, though. Any ideas? Here's the snippet of code, that later, will be part of a larger program, and generalized. func playTest() local $stream = _bass_StreamCreateFile(0, "d:\music\test.wav", 0, 0, 0) if _bass_ChannelIsActive($stream) = $bass_active_playing then _bass_channelStop($stream) _bass_channelPlay($stream, 1) EndFunc HotKeySet("^{f1}", "playTest") while 1 sleep(200) WEnd
×
×
  • Create New...