Skip to content

Instantly share code, notes, and snippets.

@mrmikejones
mrmikejones / main.cpp
Created February 12, 2013 11:22
Conversion between decibel and linear scales
#include <stdio.h>
#include <math.h>
static double ConvertDecibelsToLinear(double dB)
{
if(dB <= -60.0)
{
return 0.0;
}
return pow(10.0, dB/20.0);