Jump to content

Sound Stream Management


The_GTA

Recommended Posts

I am planning to do a radio resource. One of it's features shall be the management of live streams alongside with the internal GTA:SA ones.

The live streams start up (playSound) and once onClientSoundStream triggers, they get paused (setSoundPaused(sound, true)). They remain paused until the user selects them; basically, the currently playing channel gets paused and the next one unpaused.

Well, it does not work flawlessly. The streams tend to suddenly stop playing with no error output or sound element destruction. Is this supposed to happen? Do you guys have any experience with this problem? Am I forgetting something?

Is BASS unable to handle some live streams? Or is pausing live streams bad?

--

Another thing is onClientSoundChangedMeta and getSoundMetaTags. The event does not seem to trigger all the time and the function does not provide the promised stream_title.

Link to comment

Probably. But why does the sound element not get destroyed? And it is wierd that the stream can be paused multi times while still playing synchronised. BASS is using such a big sound buffer?

Alright, the timeout theory seems to be correct. BASS also buffers data which it collected since the stream paused; pretty weird but okay. Thanks for your help! :)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...