Hi Julen,

On Thu, Dec 17, 2009 at 10:11 AM, Robert Osfield
<[email protected]> wrote:
> This modification of osgmovie works perfectly ;-)
>
> In terms of encapsulation of the pause functionality it isn't ideal
> though, as one would really want to just pause the movie and have the
> audio stop.  I will have a think about how we might solve this -
> perhaps the AudioSink can be used to solve the problem by having an
> additional method for pausing/unpausing.

To better wrap up the pause of the audio I've introduced a new virtual
pause() method into osg::AudioSink that is called from the ffmpeg
plugin and implemented in the SDLAudioSink code in osgmovie.cpp to
enable the audio to be paused/unpaused.  These changes are now checked
into svn/trunk.

It's worth noting for consistency I've also renamed the
AudioSink::startPlaying() method to play(), so corresponding end user
code will need to be tweaked.

Cheers,
Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to