0
0

When I create a stream I get a pointer to a Sound object, which I may release with Sound::release before creating new stream. But when I start playing sound I get a pointer to a new Channel object and I did not find a function which explicitly releases channel’s resources. Does that mean that this is done automatically when I release a Sound object? I just want to be shure ’cause my playlists sometimes are huge and last very long.

  • You must to post comments
0
0

So if I want to write an endless application (like radio automation program for example) I have to reinitialize System every time I start playing new song for I never know how many channels I’m going to use ?

  • You must to post comments
0
0

Umm… o_O

When you stop a sound, the channel it was using becomes available again. Think of channels as pigeon holes… when you a play a sound or stream, a pigeon lands in one of the holes. When that sound is stopped, the pigeon flies away, making room for another one.

So no, you only have to initialize System once–the number of channels you ask for from System::init is the number of sounds you can play [b:19kuexkm]at the same time[/b:19kuexkm]. For a radio application, I can’t imagine that number would need to be any higher than 1.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.