-void
-FFmpegContent::set_audio_stream (shared_ptr<FFmpegAudioStream> s)
-{
- {
- boost::mutex::scoped_lock lm (_mutex);
- _audio_stream = s;
- }
-
- signal_changed (FFmpegContentProperty::AUDIO_STREAM);
-}
-
-ContentTime
-FFmpegContent::audio_length () const
-{
- if (!audio_stream ()) {
- return ContentTime ();
- }
-
- return video_length ();
-}
-
-int
-FFmpegContent::audio_channels () const
-{
- boost::mutex::scoped_lock lm (_mutex);
-
- if (!_audio_stream) {
- return 0;
- }
-
- return _audio_stream->channels ();
-}
-
-int
-FFmpegContent::audio_frame_rate () const
-{
- boost::mutex::scoped_lock lm (_mutex);
-
- if (!_audio_stream) {
- return 0;
- }
-
- return _audio_stream->frame_rate ();
-}
-