class

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

Source
new(input, output, sample_rate, size, interleave : Bool = false)

Open default device

Source

Instance methods

cpu_load
Source
input
Source
input_device
Source
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.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
Source
is_active?
Source
is_stopped?
Source
output
Source
output_device
Source
sample_rate
Source
size
Source
start(callback : LibPortAudio::PaStreamCallback, user_data)

Start this stream by using Proc

Source
start(user_data, &block : LibPortAudio::PaStreamCallback)

Start this stream by using block

Source
start(callbacker : AbstractAudioApp)

Start this stream by using class T that has T#callback

Source
stop
Source
to_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>
Source
to_unsafe
Source