[vorbis-dev] Error in Scales.h
Lars Brubaker
LarsBB at reflexive.net
Fri Dec 22 09:29:31 PST 2000
Some errors compiling vorbis_dynamic
Line 40 of Scales.h
was
#define toBARK(f)
(13.1f*atan(.00074f*(f))+2.24f*atan((f)*(f)*1.85e-8f)+1e-4f*(f))
Should be
#define toBARK(n)
(13.1f*atan(.00074f*(n))+2.24f*atan((n)*(n)*1.85e-8f)+1e-4f*(n))
Line 42
was
#define toMEL(f) (log(1.f+(f)*.001f)*1442.695f)
should be
#define toMEL(n) (log(1.f+(n)*.001f)*1442.695f)
Line 48
was
#define toOC(f) (log(f)*1.442695f-6.965784f)
should be
#define toOC(n) (log(n)*1.442695f-6.965784f)
The f is causing a compiler error "syntax error : 'bad suffix on number'"
Lars Brubaker.
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis-dev
mailing list