module Mp3ToDca

Overview

Main module

Defined in:

mp3_to_dca.cr

Constant Summary

VERSION = "0.1.1"

Class Method Summary

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.


[View source]
def self.encode(*args, **named_args) #

Reads data from provided IO object and print encoded data to output IO.


[View source]
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.


[View source]
def self.metadata(*args, **named_args) : String #

Method which returns string with DCA metadata.


[View source]