class Quartz::AudioStream(T)
- Quartz::AudioStream(T)
- Reference
- Object
Overview
Audio Stream class for sound IO.
Defined in:
quartz/core/stream.crConstructors
-
.new(input_device : Quartz::Device, input : Int32, output_device : Quartz::Device, output : Int32, sample_rate : Float64, size : UInt64, interleave : Bool = false)
Open given device
-
.new(input, output, sample_rate, size, interleave : Bool = false)
Open default device
Instance Method Summary
- #cpu_load
- #input : Int32
- #input_device : Device
-
#inspect(io : IO)
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
- #is_active?
- #is_stopped?
- #output : Int32
- #output_device : Device
- #ptr : Pointer(Void)
- #sample_rate : Float64
- #size : UInt64
-
#start(callback : LibPortAudio::PaStreamCallback, user_data)
Start this stream by using Proc
-
#start(user_data, &block : LibPortAudio::PaStreamCallback)
Start this stream by using block
-
#start(callbacker : AbstractAudioApp)
Start this stream by using class
T
that hasT#callback
- #stop
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
- #to_unsafe : Pointer(LibPortAudio::PaStream)
Constructor Detail
def self.new(input_device : Quartz::Device, input : Int32, output_device : Quartz::Device, output : Int32, sample_rate : Float64, size : UInt64, interleave : Bool = false)
#
Open given device
Instance Method Detail
def inspect(io : IO)
#
Description copied from class Reference
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
def to_s(io : IO)
#
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>