summaryrefslogtreecommitdiff
path: root/src/lib/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/player.h')
-rw-r--r--src/lib/player.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/player.h b/src/lib/player.h
index 79203692e..afc856316 100644
--- a/src/lib/player.h
+++ b/src/lib/player.h
@@ -34,8 +34,9 @@ class SndfileDecoder;
class Job;
class Film;
class Playlist;
+class AudioContent;
-class Player : public VideoSource, public AudioSource, public VideoSink, public AudioSink, public boost::enable_shared_from_this<Player>
+class Player : public VideoSource, public AudioSource, public VideoSink, public boost::enable_shared_from_this<Player>
{
public:
Player (boost::shared_ptr<const Film>, boost::shared_ptr<const Playlist>);
@@ -54,7 +55,7 @@ public:
private:
void process_video (boost::shared_ptr<Image> i, bool same, boost::shared_ptr<Subtitle> s);
- void process_audio (boost::shared_ptr<AudioBuffers>);
+ void process_audio (boost::weak_ptr<const AudioContent>, boost::shared_ptr<AudioBuffers>);
void setup_decoders ();
void playlist_changed ();
void content_changed (boost::weak_ptr<Content>, int);
@@ -73,6 +74,8 @@ private:
std::list<boost::shared_ptr<ImageMagickDecoder> >::iterator _imagemagick_decoder;
std::list<boost::shared_ptr<SndfileDecoder> > _sndfile_decoders;
+ boost::shared_ptr<AudioBuffers> _sndfile_buffers;
+
bool _video_sync;
};