Quartz::AudioStream(T)
Inherits Reference < Object
Audio Stream class for sound IO.
Constructors
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 methods
cpu_load
Sourceinput
Sourceinput_device
Sourceinspect(io : IO)
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>
is_active?
Sourceis_stopped?
Sourceoutput
Sourceoutput_device
Sourceptr
Sourcesample_rate
Sourcesize
Sourcestop
Sourceto_s(io : IO)
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>
to_unsafe
Source