class RemiSound::AoDevice
- RemiSound::AoDevice
- RemiSound::AudioDevice
- Reference
- Object
Overview
The AoDevice
class is used to playback audio using libao.
As libao does not support output to Float32 directly, this class will convert the audio to the requested bit rate on-the-fly. It does this without any dithering.
Defined in:
remisound/drivers/ao.crConstructors
Instance Method Summary
- #author : String
- #availableOptions : Array(String)
- #comment : String
- #driverID : Int32
- #driverID=(id : Int32) : Nil
- #matrix : String
- #matrix=(value : String) : Nil
- #name : String
- #preferredByteFormat : Format
- #priority : Int32
- #shortName : String
-
#start : Nil
Opens the audio stream.
-
#stop : Nil
Closes the audio stream and frees resources.
- #type : DriverType
- #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.