Endless audio stream support


#1

Is there a way to play an endless audio stream? Something like an AudioClip that can be used to play procedural music that is generated on the fly, maybe through a callback mechanism or something of the like.

From the docs, I seem to understand that right now the only kind of AudioClips are those that are to be loaded beforehand, is this correct?


#2

The functionality is mostly there, but it wont work out of the box.

You can provide a custom DataStream object when creating an AudioClip and provide custom samples that way. Streaming audio clips are supported, but ones with infinite sources might not work and some internal changes might be required.


#3

I’ve opened an issue on GH: https://github.com/GameFoundry/bsf/issues/331