enum RemiAudio::Formats::AuEncoding
Overview
The supported encodings for an Au file.
Defined in:
remiaudio/formats/au.crEnum Members
-
MuLaw =
1
-
µLaw encoded samples.
-
Lpcm8bit =
2
-
8-bit signed linear PCM samples
-
Lpcm16bit =
3
-
16-bit signed linear PCM samples
-
Lpcm24bit =
4
-
24-bit signed linear PCM samples
-
Lpcm32bit =
5
-
32-bit signed linear PCM samples
-
Float32 =
6
-
32-bit IEEE Float samples
-
Float64 =
7
-
64-bit IEEE Float samples
-
ALaw =
27
-
ALaw encoded samples.
Constructors
Instance Method Summary
- #a_law?
-
#checkArray(array : SampleData) : Bool
Checks that array is the correct type for this encoding.
- #float32?
- #float64?
-
#getBitDepth : UInt8
Returns the bit depth for a single sample using this encoding.
-
#getByteSize : Int32
Returns the size in bytes for a single sample using this encoding.
-
#getFloat32Div : Float32
Returns the value to use when converting a value in this encoding to a
::Float32
. -
#getFloat32Div? : Float32 | Nil
Returns the value to use when converting a value in this encoding to a
::Float32
, ornil
if converting from this encoding is not supported. -
#getFloat64Div : Float64
Returns the value to use when converting a value in this encoding to a
::Float64
. -
#getFloat64Div? : Float64 | Nil
Returns the value to use when converting a value in this encoding to a
::Float64
, ornil
if converting from this encoding is not supported. - #lpcm16bit?
- #lpcm24bit?
- #lpcm32bit?
- #lpcm8bit?
-
#makeArray(size : Int32) : SampleData
Creates a new array of the given size that is appropriate for this encoding.
- #mu_law?
-
#toSampleFormat : SampleFormat
Gets the
SampleFormat
that describes this encoding. -
#toSampleFormat? : SampleFormat | Nil
Attempts to get the
SampleFormat
that describes this encoding, ornil
if it's a non PCM/Float encoding, or an encoding not directly supported by RemiAudio.
Constructor Detail
Instance Method Detail
Checks that array is the correct type for this encoding. If it is, this
returns true
, otherwise it returns false
.
Returns the value to use when converting a value in this encoding to a
::Float32
. This will raise an UnsupportedEncodingError
if converting
from this encoding is not supported.
Returns the value to use when converting a value in this encoding to a
::Float32
, or nil
if converting from this encoding is not supported.
Returns the value to use when converting a value in this encoding to a
::Float64
. This will raise an UnsupportedEncodingError
if converting
from this encoding is not supported.
Returns the value to use when converting a value in this encoding to a
::Float64
, or nil
if converting from this encoding is not supported.
Creates a new array of the given size that is appropriate for this encoding.
Gets the SampleFormat
that describes this encoding. If this is an
encoding that does not describe a PCM/Float encoding, or an encoding not
directly supported by RemiAudio, this raises an
UnsupportedEncodingError
.
Attempts to get the SampleFormat
that describes this encoding, or
nil
if it's a non PCM/Float encoding, or an encoding not directly
supported by RemiAudio.