struct Minimp3::Frame

Defined in:

minimp3.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(data_buf : Bytes, frame_offset : UInt32, frame_bytes : UInt32, layer : UInt32, channels : UInt32, samples : UInt32, sample_rate : UInt32, bit_rate : UInt32) #

[View source]

Class Method Detail

def self.from_decode_result(pcm_buf, frame_info, samples) #

[View source]

Instance Method Detail

def bit_rate : UInt32 #

def channels : UInt32 #

def clone #

[View source]
def copy_with(data_buf _data_buf = @data_buf, frame_offset _frame_offset = @frame_offset, frame_bytes _frame_bytes = @frame_bytes, layer _layer = @layer, channels _channels = @channels, samples _samples = @samples, sample_rate _sample_rate = @sample_rate, bit_rate _bit_rate = @bit_rate) #

[View source]
def data_buf : Bytes #

def exact_samples : UInt32 #

[View source]
def exact_samples_bytes : UInt32 #

exact_samples_bytes = channels * samples * ONE_SAMPLE_BYTES


[View source]
def frame_bytes : UInt32 #

def frame_offset : UInt32 #

def layer : UInt32 #

def sample_rate : UInt32 #

def samples : UInt32 #