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.cr
remisound/audiodevice.cr
remisound/drivers/ao.cr
remisound/drivers/portaudio.cr
remisound/drivers/pulse-simple.cr

Constant Summary

VERSION = "0.1.0"

Class Method Summary

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.


[View source]