AudioDevice¶
-
php\gdx\audio\AudioDevice
Class AudioDevice
Methods
__construct
()¶private
isMono
()¶
Результат: bool
writeSamples
($samples, $offset, $numSamples)¶Writes the array of 16-bit signed PCM samples to the audio device and blocks until they have been processed.
Параметры:
- $samples –
array
- $offset –
int
- $numSamples –
int
writeFloatSamples
($samples, $offset, $numSamples)¶Writes the array of float PCM samples to the audio device and blocks until they have been processed.
Параметры:
- $samples –
array
- $offset –
int
- $numSamples –
int
getLatency
()¶
Результат: int
dispose
()¶
setVolume
($volume)¶Sets the volume in the range [0,1].
Параметры:
- $volume –
double