class

Emerald::VLC::AudioTrack

Inherits Reference < Object

Represents an audio stream or language dub track in a media source.

Constructors

new(id : Int32, name : String, channels : UInt32 = 2_u32, sample_rate : UInt32 = 44100_u32, codec : String = "", language : String | Nil = nil)
Source

Instance methods

channel_layout

Human-friendly channel description (Mono, Stereo, 5.1 Surround, etc.)

Source
channels
Source
codec
Source
language
Source
name
Source
sample_rate
Source
to_s(io : IO) : Void

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