An asset that represents a sound wave.
Inheritance:
Get the volume multiplier.
Sig: mult = SoundWave:GetVolumeMultiplier()
- Ret:
number mult
Volume multiplier
Set the volume multiplier.
Sig: SoundWave:SetVolumeMultiplier(mult)
- Arg:
number mult
Volume multiplier
Get the pitch multiplier.
Sig: mult = SoundWave:GetPitchMultiplier()
- Ret:
number mult
Pitch multiplier
Set the pitch multiplier.
Sig: SoundWave:SetPitchMultiplier(mult)
- Arg:
number mult
Pitch multiplier
Get the wave data size in bytes.
Sig: size = SoundWave:GetWaveDataSize()
- Ret:
integer size
Wave data size in bytes
Get the number of sound channels. Either 1 (mono) or 2 (stereo).
Sig: num = SoundWave:GetNumChannels()
- Ret:
integer num
Num channels
Get the number of bits per sample. Either 8 or 16.
Sig: bits = SoundWave:GetBitsPerSample()
- Ret:
integer bits
Bits per sample
Get the sample rate. Either 22050 or 44100.
Sig: rate = SoundWave:GetSampleRate()
- Ret:
integer rate
Sample rate
Get the total number of samples.
Sig: num = SoundWave:GetNumSamples()
- Ret:
integer num
Num samples
Get the byte rate.
Sig: rate = SoundWave:GetByteRate()
- Ret:
integer rate
Byte rate
Get the sound wave duration in seconds.
Sig: duration = SoundWave:GetDuration()
- Ret:
number duration
Duration in seconds