module RemiSound
Overview
RemiSound is a small library that abstracts away various audio output libraries. # It currently supports PortAudio, PulseAudio, and libao.
Defined in:
remisound.crremisound/audiodevice.cr
remisound/drivers/ao.cr
remisound/drivers/portaudio.cr
remisound/drivers/pulse-simple.cr
Constant Summary
-
VERSION =
"0.1.0"
Class Method Summary
-
.withDevice(typ : T.class, sampleRate : Int, bitDepth : Int, channels : Int, &) : Nil forall T
Creates a new device instance, then yields it to the block.
Class Method Detail
def self.withDevice(typ : T.class, sampleRate : Int, bitDepth : Int, channels : Int, &) : Nil forall T
#
Creates a new device instance, then yields it to the block. This ensures
that #stop
is called once the block exits.
T
must be a subclass of RemiSound::AudioDevice
.