class RemiSound::PortDevice
- RemiSound::PortDevice
- RemiSound::AudioDevice
- Reference
- Object
Overview
The PortDevice
class is used to playback audio using PortAudio.
PortAudio supports Float32 audio natively, so the #bitDepth
field is
ignored by this class and is always set to 32
.
Defined in:
remisound/drivers/portaudio.crConstructors
Instance Method Summary
-
#start : Nil
Opens the audio stream.
-
#stop : Nil
Closes the audio stream and frees resources.
- #writeBuffer(buf : Array(Float32) | Slice(Float32)) : Nil
Instance methods inherited from class RemiSound::AudioDevice
bitDepth : UInt8
bitDepth,
bufferSize : UInt32
bufferSize,
bufferSize=(value : UInt32) : Nil
bufferSize=,
channels : UInt8
channels,
expectedBufferSize : UInt32
expectedBufferSize,
sampleRate : UInt32
sampleRate,
start : Nil
start,
started? : Bool
started?,
stop : Nil
stop,
writeBuffer(buf : Array(Float32) | Slice(Float32)) : Nil
writeBuffer
Constructor methods inherited from class RemiSound::AudioDevice
new(newSampleRate : Int, newBitDepth : Int, newChannels : Int)
new
Constructor Detail
Instance Method Detail
def start : Nil
#
Description copied from class RemiSound::AudioDevice
Opens the audio stream. This must be called before #writeBuffer
is
called.
def stop : Nil
#
Description copied from class RemiSound::AudioDevice
Closes the audio stream and frees resources. This must be called when you are finished using the instance.