[vorbis-dev] Suggestion for libvorbisfile: scaling

Paul Martin pm at nowster.zetnet.co.uk
Thu Jan 3 05:03:11 PST 2002



I've been experimenting with the ideas of Replay Gain[1] and find that
ogg123 doesn't have a way of specifying the scaling applied to
replayed samples (like -f in mpg123).

Looking at libvorbisfile, I see no function exactly matching this
possibly desirable behaviour.

ov_read() scales by either 128 (byte output) or 32768 (word output),
but there's nothing in between.

ov_read_float() outputs floats, which is OK, but means more work in the
frontend program.

My suspicion is that floats are not used internally by ov_read(), and
there would be a speed penalty for using ov_read_float().

Anyone have further thoughts on this?

[1] http://privatewww.essex.ac.uk/~djmrob/replaygain/

-- 
Paul Martin

--- >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