Shrink the peak_display button to avoid blowing-up the vertical spacing of the toolbar.
[ardour.git] / libs / ardour / ardour / audio_track.h
1 /*
2     Copyright (C) 2002-2006 Paul Davis
3
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19
20 #ifndef __ardour_audio_track_h__
21 #define __ardour_audio_track_h__
22
23 #include "ardour/interthread_info.h"
24 #include "ardour/track.h"
25
26 namespace ARDOUR {
27
28 class Session;
29 class AudioPlaylist;
30 class RouteGroup;
31 class AudioFileSource;
32
33 class LIBARDOUR_API AudioTrack : public Track
34 {
35   public:
36         AudioTrack (Session&, std::string name, TrackMode m = Normal);
37         ~AudioTrack ();
38
39         void freeze_me (InterThreadInfo&);
40         void unfreeze ();
41
42         bool bounceable (boost::shared_ptr<Processor>, bool include_endpoint) const;
43         boost::shared_ptr<Region> bounce (InterThreadInfo&);
44         boost::shared_ptr<Region> bounce_range (samplepos_t start, samplepos_t end, InterThreadInfo&,
45                                                 boost::shared_ptr<Processor> endpoint, bool include_endpoint);
46         int export_stuff (BufferSet& bufs, samplepos_t start_sample, samplecnt_t nframes,
47                           boost::shared_ptr<Processor> endpoint, bool include_endpoint, bool for_export, bool for_freeze);
48
49         int set_state (const XMLNode&, int version);
50
51         boost::shared_ptr<AudioFileSource> write_source (uint32_t n = 0);
52
53   protected:
54         XMLNode& state (bool save_template);
55
56   private:
57         int  deprecated_use_diskstream_connections ();
58         void set_state_part_two ();
59         void set_state_part_three ();
60 };
61
62 } // namespace ARDOUR
63
64 #endif /* __ardour_audio_track_h__ */