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.
- vchu8makov asked 11 years ago
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.
- Bruce answered 11 years ago
Please login first to submit.