Mercurial > hg > svcore
comparison data/model/DenseTimeValueModel.h @ 929:59e7fe1b1003 warnfix_no_size_t
Unsigned removals and warning fixes in data/
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 14:33:42 +0100 |
parents | 3a3541b357fe |
children | cc27f35aa75c |
comparison
equal
deleted
inserted
replaced
928:6a94bb528e9d | 929:59e7fe1b1003 |
---|---|
51 virtual float getValueMaximum() const = 0; | 51 virtual float getValueMaximum() const = 0; |
52 | 52 |
53 /** | 53 /** |
54 * Return the number of distinct channels for this model. | 54 * Return the number of distinct channels for this model. |
55 */ | 55 */ |
56 virtual size_t getChannelCount() const = 0; | 56 virtual int getChannelCount() const = 0; |
57 | 57 |
58 /** | 58 /** |
59 * Get the specified set of samples from the given channel of the | 59 * Get the specified set of samples from the given channel of the |
60 * model in single-precision floating-point format. Return the | 60 * model in single-precision floating-point format. Return the |
61 * number of samples actually retrieved. | 61 * number of samples actually retrieved. |
62 * If the channel is given as -1, mix all available channels and | 62 * If the channel is given as -1, mix all available channels and |
63 * return the result. | 63 * return the result. |
64 */ | 64 */ |
65 virtual size_t getData(int channel, size_t start, size_t count, | 65 virtual int getData(int channel, int start, int count, |
66 float *buffer) const = 0; | 66 float *buffer) const = 0; |
67 | 67 |
68 /** | 68 /** |
69 * Get the specified set of samples from the given channel of the | 69 * Get the specified set of samples from the given channel of the |
70 * model in double-precision floating-point format. Return the | 70 * model in double-precision floating-point format. Return the |
71 * number of samples actually retrieved. | 71 * number of samples actually retrieved. |
72 * If the channel is given as -1, mix all available channels and | 72 * If the channel is given as -1, mix all available channels and |
73 * return the result. | 73 * return the result. |
74 */ | 74 */ |
75 virtual size_t getData(int channel, size_t start, size_t count, | 75 virtual int getData(int channel, int start, int count, |
76 double *buffer) const = 0; | 76 double *buffer) const = 0; |
77 | 77 |
78 /** | 78 /** |
79 * Get the specified set of samples from given contiguous range | 79 * Get the specified set of samples from given contiguous range |
80 * of channels of the model in single-precision floating-point | 80 * of channels of the model in single-precision floating-point |
81 * format. Return the number of sample frames actually retrieved. | 81 * format. Return the number of sample frames actually retrieved. |
82 */ | 82 */ |
83 virtual size_t getData(size_t fromchannel, size_t tochannel, | 83 virtual int getData(int fromchannel, int tochannel, |
84 size_t start, size_t count, | 84 int start, int count, |
85 float **buffers) const = 0; | 85 float **buffers) const = 0; |
86 | 86 |
87 virtual bool canPlay() const { return true; } | 87 virtual bool canPlay() const { return true; } |
88 virtual QString getDefaultPlayClipId() const { return ""; } | 88 virtual QString getDefaultPlayClipId() const { return ""; } |
89 | 89 |
90 virtual QString toDelimitedDataString(QString delimiter, size_t f0, size_t f1) const; | 90 virtual QString toDelimitedDataStringSubset(QString delimiter, int f0, int f1) const; |
91 | 91 |
92 QString getTypeName() const { return tr("Dense Time-Value"); } | 92 QString getTypeName() const { return tr("Dense Time-Value"); } |
93 }; | 93 }; |
94 | 94 |
95 #endif | 95 #endif |