enum RemiAudio::SampleFormat

Overview

Used to describe the format of a sample when it may be ambiguous.

Defined in:

remiaudio/common.cr

Enum Members

F64 = 0
F32 = 1
I64 = 2
I32 = 3
I24 = 4
I16 = 5
I8 = 6

I12

U8 = 7

Instance Method Summary

Instance Method Detail

def f32? #

[View source]
def f64? #

[View source]
def getBits #

Returns the number of bits that this format represents.


[View source]
def getClass : Class #

Returns the class that is expected to store this format.


[View source]
def i16? #

[View source]
def i24? #

[View source]
def i32? #

[View source]
def i64? #

[View source]
def i8? #

[View source]
def makeArray(size : Int) : SampleData #

[View source]
def u8? #

[View source]