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.

Параметры:
  • $samplesarray
  • $offsetint
  • $numSamplesint
writeFloatSamples($samples, $offset, $numSamples)

Writes the array of float PCM samples to the audio device and blocks until they have been processed.

Параметры:
  • $samplesarray
  • $offsetint
  • $numSamplesint
getLatency()
Результат:int
dispose()
setVolume($volume)

Sets the volume in the range [0,1].

Параметры:
  • $volumedouble