module RemiAudio
Overview
RemiAudio is a collection of audio format I/O routines, codecs, and processors/effects for the Crystal programming language.
Defined in:
remiaudio.crremiaudio/common.cr
remiaudio/cue.cr
remiaudio/vorbiscomment.cr
Constant Summary
-
INT16_INV =
1 / Int16::MAX
-
INT16_INV_F32 =
INT16_INV.to_f32!
-
INT24_INV =
1 / ((2 ** 23) - 1)
-
INT24_INV_F32 =
INT24_INV.to_f32!
-
INT32_INV =
1 / Int32::MAX
-
INT32_INV_F32 =
INT32_INV.to_f32!
-
INT8_INV =
1 / Int8::MAX
-
INT8_INV_F32 =
INT8_INV.to_f32!
-
VERSION =
"0.9.1"
-
The version of the library.
Class Method Summary
-
.decibelsToLinear(x : Float64) : Float64
Converts decibels to a linear float value.
-
.decibelsToLinear(x : Float32) : Float32
Converts decibels to a linear float value.
-
.linearToDecibels(x : Float64) : Float64
Converts a linear float value to decibels.
-
.linearToDecibels(x : Float32) : Float32
Converts a linear float value to decibels.
Class Method Detail
def self.linearToDecibels(x : Float64) : Float64
#
Converts a linear float value to decibels. If x
is 0, this always returns
-144.0.
def self.linearToDecibels(x : Float32) : Float32
#
Converts a linear float value to decibels. If x
is 0, this always returns
-144.0.