void
AnalyseAudioJob::run ()
{
- shared_ptr<Player> player (new Player (_film, _playlist));
+ shared_ptr<Player> player (new Player (_film));
player->set_ignore_video ();
int64_t const len = _film->length().frames (_film->audio_frame_rate());
shared_ptr<Player>
Film::make_player () const
{
- return shared_ptr<Player> (new Player (shared_from_this (), _playlist));
+ return shared_ptr<Player> (new Player (shared_from_this ()));
}
void
#include "subrip_decoder.h"
#include "subrip_content.h"
#include "dcp_content.h"
-#include "playlist.h"
#include "job.h"
#include "image.h"
#include "raw_image_proxy.h"
using boost::dynamic_pointer_cast;
using boost::optional;
-Player::Player (shared_ptr<const Film> f, shared_ptr<const Playlist> p)
+Player::Player (shared_ptr<const Film> f)
: _film (f)
- , _playlist (p)
, _have_valid_pieces (false)
, _ignore_video (false)
, _burn_subtitles (f->burn_subtitles ())
list<shared_ptr<Piece> > old_pieces = _pieces;
_pieces.clear ();
- ContentList content = _playlist->content ();
+ ContentList content = _film->content ();
for (ContentList::iterator i = content.begin(); i != content.end(); ++i) {
#ifndef DCPOMATIC_PLAYER_H
#define DCPOMATIC_PLAYER_H
-#include "playlist.h"
#include "content.h"
#include "film.h"
#include "rect.h"
class Job;
class Film;
-class Playlist;
class AudioContent;
class Piece;
class Image;
class Resampler;
class PlayerVideo;
class ImageProxy;
+class Font;
class PlayerStatistics
{
};
/** @class Player
- * @brief A class which can `play' a Playlist.
+ * @brief A class which can `play' a Film.
*/
class Player : public boost::enable_shared_from_this<Player>, public boost::noncopyable
{
public:
- Player (boost::shared_ptr<const Film>, boost::shared_ptr<const Playlist>);
+ Player (boost::shared_ptr<const Film>);
std::list<boost::shared_ptr<PlayerVideo> > get_video (DCPTime time, bool accurate);
boost::shared_ptr<AudioBuffers> get_audio (DCPTime time, DCPTime length, bool accurate);
}
boost::shared_ptr<const Film> _film;
- boost::shared_ptr<const Playlist> _playlist;
/** Our pieces are ready to go; if this is false the pieces must be (re-)created before they are used */
bool _have_valid_pieces;