I am currently also trying to figure out how to convert SDL sound to KOS sound streaming but don't know where to start. Is there any examples anywhere? All the kos examples are for sndvorbis and mp3/wav playback.
My code has the stereo sound in a buffer and then dac sound effects in another buffer, and its using
SDL_BuildAudioCVT(&acvt, AUDIO_U8, 1, 8000, DEFAULT_FORMAT,DEFAULT_CHANNELS, samplerate)
and
SDL_ConvertAudio(&acvt)
then its mixing the both streams into one
SDL_MixAudio(sound_buffer+sound_frame_write, dac_data, bpf, SDL_MIX_MAXVOLUME);
how would I replace this with KOS calls? use multiple channels? Any examples or help is appreciated.
Thanks,
Troy