diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-13 20:44:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-13 20:44:45 +0100 |
| commit | 3ddd928233130695d7f4eeee47a71409d8c04de7 (patch) | |
| tree | 9f616a27fc6492b30536a2a366cf9e7211a87a3d /src/lib/audio_content.h | |
| parent | e8c5f14cb6736bdfa3610b2559c6c331c1c56984 (diff) | |
Very basic audio processing framework.
Diffstat (limited to 'src/lib/audio_content.h')
| -rw-r--r-- | src/lib/audio_content.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/audio_content.h b/src/lib/audio_content.h index 131ced61a..540839d69 100644 --- a/src/lib/audio_content.h +++ b/src/lib/audio_content.h @@ -31,6 +31,8 @@ namespace cxml { class Node; } +class AudioProcessor; + class AudioContentProperty { public: @@ -40,6 +42,7 @@ public: static int const AUDIO_GAIN; static int const AUDIO_DELAY; static int const AUDIO_MAPPING; + static int const AUDIO_PROCESSOR; }; /** @class AudioContent @@ -70,11 +73,13 @@ public: virtual boost::filesystem::path audio_analysis_path () const; int resampled_audio_frame_rate () const; + int processed_audio_channels () const; boost::signals2::connection analyse_audio (boost::function<void()>); void set_audio_gain (double); void set_audio_delay (int); + void set_audio_processor (AudioProcessor const *); double audio_gain () const { boost::mutex::scoped_lock lm (_mutex); @@ -86,11 +91,17 @@ public: return _audio_delay; } + AudioProcessor const * audio_processor () const { + boost::mutex::scoped_lock lm (_mutex); + return _audio_processor; + } + private: /** Gain to apply to audio in dB */ double _audio_gain; /** Delay to apply to audio (positive moves audio later) in milliseconds */ int _audio_delay; + AudioProcessor const * _audio_processor; }; #endif |
