module Mp3ToDca
Overview
Main module
Defined in:
mp3_to_dca.crConstant Summary
-
VERSION =
"0.1.1"
Class Method Summary
-
.encode(input : IO, output : IO, sample_rate : Int32 = 48000, frame_size : Int32 = 960, channels : Int32 = 2, &block : IO::Memory -> Nil) : Nil
Reads data from provided
IO
object and print encoded data to outputIO
. -
.encode(*args, **named_args)
Reads data from provided
IO
object and print encoded data to outputIO
. -
.metadata(io : IO, sample_rate : Int32 = 48000, frame_size : Int32 = 960, channels : Int32 = 2) : Nil
Method which writes DCA metadata to provided
IO
. -
.metadata(*args, **named_args) : String
Method which returns string with DCA metadata.
Class Method Detail
def self.encode(input : IO, output : IO, sample_rate : Int32 = 48000, frame_size : Int32 = 960, channels : Int32 = 2, &block : IO::Memory -> Nil) : Nil
#
Reads data from provided IO
object and print encoded data to output IO
.
Provided block will be yielded with IO::Memory
containing audio data. This
allows you to affect sound in any way you want.
def self.encode(*args, **named_args)
#
Reads data from provided IO
object and print encoded data to output IO
.
def self.metadata(io : IO, sample_rate : Int32 = 48000, frame_size : Int32 = 960, channels : Int32 = 2) : Nil
#
Method which writes DCA metadata to provided IO
.