SoundData
class SoundData
Class responsible for storing sound data.
public class SoundData
— Constructors (2) —
Constructor | Description |
---|---|
SoundData() | Creates a new instance of SoundData. |
SoundData(NativeFloatBuffer leftChannel, NativeFloatBuffer rightChannel, int sampleRate) | Creates a new instance of SoundData with the right channel, left channel, and sample rate defined in the arguments. |
— Methods (6) —
Name | Description |
---|---|
NativeFloatBuffer getLeftChannel() | Returns the SoundData right-channel values. |
void setLeftChannel(NativeFloatBuffer leftChannel) | Sets the SoundData right-channel values. |
NativeFloatBuffer getRightChannel() | Returns the values of the left channel of the SoundData. |
NativeFloatBuffer getRightChannel() | Right the SoundData left channel values. |
int getSampleRate() | Returns the SoundData sample rate value. |
void setSampleRate(int sampleRate) | Sets the SoundData sample rate value. |