class RemiSound::PulseDevice
- RemiSound::PulseDevice
- RemiSound::AudioDevice
- Reference
- Object
Overview
The PulseDevice
class is used to playback audio using PulseAudio.
PulseAudio supports Float32 audio natively, so the #bitDepth
field is
ignored by this class and is always set to 32
.
Defined in:
remisound/drivers/pulse-simple.crConstructors
Instance Method Summary
- #programName : String
- #programName=(value : String) : Nil
-
#start : Nil
Opens the audio stream.
-
#stop : Nil
Closes the audio stream and frees resources.
- #streamName : String
- #streamName=(value : String) : Nil
- #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.