#include "butler.h"
#include "player.h"
+#include "util.h"
#include <boost/weak_ptr.hpp>
#include <boost/shared_ptr.hpp>
, _disable_audio (false)
{
_player_video_connection = _player->Video.connect (bind (&Butler::video, this, _1, _2));
- _player_audio_connection = _player->Audio.connect (bind (&Butler::audio, this, _1, _2));
+ _player_audio_connection = _player->Audio.connect (bind (&Butler::audio, this, _1));
_player_changed_connection = _player->Changed.connect (bind (&Butler::player_changed, this));
_thread = new boost::thread (bind (&Butler::thread, this));
}
}
void
-Butler::audio (shared_ptr<AudioBuffers> audio, DCPTime time)
+Butler::audio (shared_ptr<AudioBuffers> audio)
{
{
boost::mutex::scoped_lock lm (_mutex);
}
}
- _audio.put (audio, time);
+ _audio.put (remap (audio, _audio_channels, _audio_mapping));
}
void