module RemiAudio::Drivers::PortAudio
Defined in:
remiaudio/drivers/port-bindings.crremiaudio/drivers/portaudio.cr
Class Method Summary
- .defaultHostApi : Int
- .defaultInputDevice : Int
- .defaultOutputDevice : Int
- .deviceCount : Int
- .getDeviceInfo(device : Int) : DeviceInfo
- .getLastHostErrorInfo : HostErrorInfo
- .hostApiDeviceIndexToDeviceIndex(hostApi : Int, hostApiDeviceIndex : Int) : Int
- .hostApiInfo(apiIndex : Int) : HostApiInfo
- .init
- .sleep(msec : Int64) : Nil
- .terminate
- .version : Int
- .versionStr : String
-
.withPA(&) : Nil
Initializes PortAudio using
PortAudio.start
, then yields.
Class Method Detail
def self.hostApiDeviceIndexToDeviceIndex(hostApi : Int, hostApiDeviceIndex : Int) : Int
#
def self.withPA(&) : Nil
#
Initializes PortAudio using PortAudio.start
, then yields. This
ensures that PortAudio.terminate
is called before this returns.