diff options
author | Carl Hetherington <carl@carlh.net> | 2011-10-31 21:16:14 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-10-31 21:16:14 +0000 |
commit | 8536524bd36658db703b9cf147b735f5c3c3c8d1 (patch) | |
tree | e35005fa220b91347fd9b7d242fe5d6df9fd36d5 /libs/ardour | |
parent | 531ebc35bd851aef47ed8970d2337b51f01b7218 (diff) |
Remove unused code.
git-svn-id: svn://localhost/ardour2/branches/3.0@10354 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/ardour/audio_diskstream.h | 14 | ||||
-rw-r--r-- | libs/ardour/audio_diskstream.cc | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/libs/ardour/ardour/audio_diskstream.h b/libs/ardour/ardour/audio_diskstream.h index 94c843971b..8871892178 100644 --- a/libs/ardour/ardour/audio_diskstream.h +++ b/libs/ardour/ardour/audio_diskstream.h @@ -77,18 +77,6 @@ class AudioDiskstream : public Diskstream int set_non_layered (bool yn); bool can_become_destructive (bool& requires_bounce) const; - float peak_power(uint32_t n = 0) { - boost::shared_ptr<ChannelList> c = channels.reader(); - ChannelInfo* chaninfo = (*c)[n]; - float x = chaninfo->peak_power; - chaninfo->peak_power = 0.0f; - if (x > 0.0f) { - return 20.0f * fast_log10(x); - } else { - return minus_infinity(); - } - } - boost::shared_ptr<AudioPlaylist> audio_playlist () { return boost::dynamic_pointer_cast<AudioPlaylist>(_playlist); } int use_playlist (boost::shared_ptr<Playlist>); @@ -194,8 +182,6 @@ class AudioDiskstream : public Diskstream Sample *capture_wrap_buffer; Sample *speed_buffer; - float peak_power; - boost::shared_ptr<AudioFileSource> write_source; /// information the Port that our audio data comes from diff --git a/libs/ardour/audio_diskstream.cc b/libs/ardour/audio_diskstream.cc index a7c8558fdc..6a7c12489e 100644 --- a/libs/ardour/audio_diskstream.cc +++ b/libs/ardour/audio_diskstream.cc @@ -2292,7 +2292,6 @@ AudioDiskstream::ChannelSource::ensure_monitor_input (bool yn) const AudioDiskstream::ChannelInfo::ChannelInfo (framecnt_t playback_bufsize, framecnt_t capture_bufsize, framecnt_t speed_size, framecnt_t wrap_size) { - peak_power = 0.0f; current_capture_buffer = 0; current_playback_buffer = 0; curr_capture_cnt = 0; |