class Sonicri::Audio

Included Modules

Defined in:

sonicri/audio.cr

Constant Summary

BUF_SIZE = 4 * 1024
BYTE_FORMAT = LibAO::Byte_Format::AO_FMT_BIG
INFO_POS_COL = 0
INFO_POS_ROW = 0
LOCAL_MP3 = "local.mp3"

Constructors

Instance Method Summary

Constructor Detail

def self.new(progress : Sonicri::Display::Progress) #

[View source]

Instance Method Detail

def calc_offset(distance) #

[View source]
def current_sample_offset #

[View source]
def jump_back(distance = :small) #

[View source]
def jump_forward(distance = :small) #

[View source]
def jump_relative(offset) #

[View source]
def jump_to(offset) #

[View source]
def make_cache_name(cache_name) #

[View source]
def move_to_file_cache(filename = LOCAL_MP3, from_start = false) #

[View source]
def pause #

[View source]
def play_music(file) #

[View source]
def play_radio(url) #

[View source]
def progress : Display::Progress #

[View source]
def progress=(progress : Display::Progress) #

[View source]
def quit #

[View source]
def record #

[View source]
def reinitialize #

[View source]
def run(name, addr) #

[View source]
def running? : Bool #

[View source]
def stop #

[View source]
def win=(win : NCurses::Window | Nil) #

[View source]