Audacity 3.2.0
SampleTrack.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3Audacity: A Digital Audio Editor
4
5SampleTrack.cpp
6
7Paul Licameli split from WaveTrack.cpp
8
9**********************************************************************/
10
11#include "SampleTrack.h"
12
13#include <cmath>
14
15SampleTrack::SampleTrack() = default;
16
18 : PlayableTrack(other, std::move(a))
19{
20}
21
23
25{
26 static const Track::TypeInfo info{
27 { "sample", "sample", XO("Sample Track") },
29 return info;
30}
31
33{
34 return typeInfo();
35}
36
37auto SampleTrack::GetTypeInfo() const -> const TypeInfo &
38{
39 return typeInfo();
40}
41
43
46) : SampleTrack(other, std::move(a))
47{
48}
49
51
53{
54 static const Track::TypeInfo info{
55 { "writable-sample", "writable-sample", XO("Writable Sample Track") },
57 return info;
58}
59
61{
62 return typeInfo2();
63}
64
66{
67 return typeInfo2();
68}
XO("Cut/Copy/Paste")
static const Track::TypeInfo & typeInfo2()
Definition: SampleTrack.cpp:52
static const Track::TypeInfo & typeInfo()
Definition: SampleTrack.cpp:24
AudioTrack subclass that can also be audibly replayed by the program.
Definition: PlayableTrack.h:40
static const TypeInfo & ClassTypeInfo()
~SampleTrack() override
const TypeInfo & GetTypeInfo() const override
Definition: SampleTrack.cpp:37
static const TypeInfo & ClassTypeInfo()
Definition: SampleTrack.cpp:32
static const TypeInfo & ClassTypeInfo()
Definition: SampleTrack.cpp:60
const TypeInfo & GetTypeInfo() const override
Definition: SampleTrack.cpp:65
~WritableSampleTrack() override
STL namespace.
Empty argument passed to some public constructors.
Definition: Track.h:129