[libavg-devel] Audio Support Patch

Nick Hebner hebnern at gmail.com
Fri Jan 4 02:08:06 CET 2008


Hello,

I have just made a commit to the audio branch adding support for the speed
factor property that we had talked about earlier. I have re-implemented
setFPS() to use setSpeedFactor() instead, and all tests continue to pass.

My method is pretty simple, so there shouldn't be much controversy over this
one. For videos without audio, they simply use the timing variables that
were set with setFPS() (m_FPS, and m_bUseStreamFPS). For videos with audio,
I am simply setting an m_SpeedFactor variable, and using this to compute the
effective sample rate and resampling audio with this. The audio clock is
updated appropriately as audio is consumed, so syncing works at different
speeds. This property is dynamically changable from python.

If you'd like, have a look at the changes here:
https://www.libavg.de/websvn/comp.php?repname=libavg&path=&compare%5B%5D=%2Fbranches%2Faudio@2501&compare%5B%5D=%2Fbranches%2Faudio@2505


Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.datenhain.de/pipermail/libavg-devel/attachments/20080103/7e6c8269/attachment.htm 


More information about the libavg-devel mailing list