projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reinstate subtitle list view.
[dcpomatic.git]
/
src
/
lib
/
audio_merger.h
diff --git
a/src/lib/audio_merger.h
b/src/lib/audio_merger.h
index 756e5ab3120719fc8fd4e892891b947bbdf31ddb..c9026b93eb99aedf131f0e68db54b148c839ee9f 100644
(file)
--- a/
src/lib/audio_merger.h
+++ b/
src/lib/audio_merger.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2013-201
4
Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-201
6
Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-17,10
+17,10
@@
*/
*/
+#include "audio_buffers.h"
+#include "dcpomatic_time.h"
#include "util.h"
#include "util.h"
-class AudioBuffers;
-
class AudioMerger
{
public:
class AudioMerger
{
public:
@@
-29,13
+29,11
@@
public:
/** Pull audio up to a given time; after this call, no more data can be pushed
* before the specified time.
*/
/** Pull audio up to a given time; after this call, no more data can be pushed
* before the specified time.
*/
-
TimedAudioBuffers
pull (DCPTime time);
+
std::pair<boost::shared_ptr<AudioBuffers>, DCPTime>
pull (DCPTime time);
void push (boost::shared_ptr<const AudioBuffers> audio, DCPTime time);
void push (boost::shared_ptr<const AudioBuffers> audio, DCPTime time);
- TimedAudioBuffers flush ();
- void clear (DCPTime t);
-
+
private:
boost::shared_ptr<AudioBuffers> _buffers;
private:
boost::shared_ptr<AudioBuffers> _buffers;
- int _frame_rate;
DCPTime _last_pull;
DCPTime _last_pull;
+ int _frame_rate;
};
};