Author Topic: Is BASS threadsafe?  (Read 3304 times)

Eric Lund

  • Guest
Is BASS threadsafe?
« on: 16 Jun '03 - 06:50 »
I thought this was answered somewhere before but I can't locate the conversation. Is BASS thread-safe? I've created several MO3 music files for my game and I'm currently playing them back jukebox-style. The main loop every few seconds checks to see if the song is over, and if so kicks off the next MO3. This results in a noticeable pause as the game waits for the next song to decompress. I think a thread will eliminate this pause, but this could mean some sounds in memory will go off while the next BASS_MusicLoad() is running in the second thread. Are there any problems with this?

Eric W. Lund
Gearhand Studios
http://www.gearhand.com

Ian @ un4seen

  • Administrator
  • Posts: 24940
Re: Is BASS threadsafe?
« Reply #1 on: 16 Jun '03 - 13:25 »
Quote
Are there any problems with this?

Nope, using another thread is the answer :)

Eric Lund

  • Guest
Re: Is BASS threadsafe?
« Reply #2 on: 16 Jun '03 - 16:03 »
Thanks, Ian. :)