Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

audio.h

00001 // Copyright (C) 2001 InfoSpace Speech Solutions
00002 // author: Jean-Marc Valin
00003 
00004 #ifndef AUDIO_H
00005 #define AUDIO_H
00006 
00007 #include <math.h>
00008 
00009 inline float bark(float f)
00010 {
00011    return 13*atan(0.00076*f) + 3.5*atan((0.0001333*f) * (0.0001333*f));
00012 }
00013 
00014 inline float dB(float P)
00015 {
00016    return 4.3429*log(P);
00017 }
00018 
00019 inline float undB(float d)
00020 {
00021    return exp(0.23026*d);
00022 }
00023 
00024 #endif

Generated on Wed Oct 5 14:28:55 2005 for FlowDesigner by  doxygen 1.4.4