Try again to sort out the audio padding / alignment.
[dcpomatic.git] / src / lib / j2k_wav_encoder.h
index 6733221deca3b47a9f785ccc312ba3f5cab6f194..69d445b09c62cb73d85f47c6e32a1672363a686c 100644 (file)
@@ -57,7 +57,7 @@ public:
 
 private:
 
-       void write_audio (boost::shared_ptr<const AudioBuffers> audio) const;
+       void write_audio (boost::shared_ptr<const AudioBuffers> audio);
        void encoder_thread (ServerDescription *);
        void close_sound_files ();
        void terminate_worker_threads ();
@@ -67,6 +67,7 @@ private:
 #endif 
 
        std::vector<SNDFILE*> _sound_files;
+       int64_t _audio_frames_written;
 
        bool _process_end;
        std::list<boost::shared_ptr<DCPVideoFrame> > _queue;