diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-03 00:47:32 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-03 00:47:32 +0000 |
| commit | 821b556975c44bcb2c8607fc26462b7b79db2fe6 (patch) | |
| tree | 14a2ce9227c8ab385ee2b86cc57e54ab08a9a8cd /src/lib/audio_decoder.h | |
| parent | 3dfdd5795cf6514e15fdbece54c28f3bddc2aadc (diff) | |
Various fix-ups.
Diffstat (limited to 'src/lib/audio_decoder.h')
| -rw-r--r-- | src/lib/audio_decoder.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/audio_decoder.h b/src/lib/audio_decoder.h index a295df0cc..12f8505f6 100644 --- a/src/lib/audio_decoder.h +++ b/src/lib/audio_decoder.h @@ -44,15 +44,17 @@ public: return _audio_content; } + void seek (ContentTime time, bool accurate); + protected: - void audio (boost::shared_ptr<const AudioBuffers>, ContentTime); + virtual ContentTime first_audio () const = 0; + void audio (boost::shared_ptr<const AudioBuffers>); void flush (); boost::shared_ptr<const AudioContent> _audio_content; boost::shared_ptr<Resampler> _resampler; - /* End time of last audio that we wrote to _pending; only used for flushing the resampler */ - ContentTime _last_audio; + AudioFrame _audio_position; }; #endif |
