13
0

Remove unused code.

git-svn-id: svn://localhost/ardour2/branches/3.0@10354 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-10-31 21:16:14 +00:00
parent 531ebc35bd
commit 8536524bd3
2 changed files with 0 additions and 15 deletions

View File

@ -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

View File

@ -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;