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.cr
remiaudio/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

Class Method Detail

def self.decibelsToLinear(x : Float64) : Float64 #

Converts decibels to a linear float value.


[View source]
def self.decibelsToLinear(x : Float32) : Float32 #

Converts decibels to a linear float value.


[View source]
def self.linearToDecibels(x : Float64) : Float64 #

Converts a linear float value to decibels. If x is 0, this always returns -144.0.


[View source]
def self.linearToDecibels(x : Float32) : Float32 #

Converts a linear float value to decibels. If x is 0, this always returns -144.0.


[View source]