Hi, I have scenario like this: Sound manager handles everything concerning music, like adding songs to the playlist etc. I have a StartJukebox-method, which calls function ChangeMusic. ChangeMusic is also a stream end callback function. ChangeMusic randomly loads the song from the list, and sets the stream’s end callback function as ChangeMusic. Like this the jukebox loops through the given music files. But what if one of the files is invalid? The ChangeMusic fails, but how can the sound manager catch it? Where does the stream end callback functions (ChangeMusic) return value go?
- miksan asked 14 years ago
- You must login to post comments