class MySoundStream : SoundStream { this() { initialize(2, 44100); // you need to initialize the base class before any operation. } protected bool onGetData(out short[] data) { //You need to fill data array with some samples return true; //or false if you want to stop playback } protected bool onStart() { return true; } }
float pitch | New pitch |
float volume | Volume (in range [0, 100]) |
Vector3!(float) vec | Position of the sound in the world |
float minDistance | New minimum distance for the sound |
float attenuation | New attenuation factor for the sound |
uint channelsCount | number of channel |
uint sampleRate | sample rate of the stream |
short[] data | array of samples to stream |