comparison data/model/DenseTimeValueModel.h @ 1069:32ab6c48efaa

Merge from branch tonioni
author Chris Cannam
date Mon, 20 Apr 2015 09:11:34 +0100
parents cc27f35aa75c
children 9f4505ac9072
comparison
equal deleted inserted replaced
1036:682d64f05e72 1069:32ab6c48efaa
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 int getData(int channel, int start, int count, 65 virtual sv_frame_t getData(int channel, sv_frame_t start, sv_frame_t 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 int getData(int channel, int start, int count, 75 virtual sv_frame_t getData(int channel, sv_frame_t start, sv_frame_t 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 int getData(int fromchannel, int tochannel, 83 virtual sv_frame_t getData(int fromchannel, int tochannel,
84 int start, int count, 84 sv_frame_t start, sv_frame_t 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 toDelimitedDataStringSubset(QString delimiter, int f0, int f1) const; 90 virtual QString toDelimitedDataStringSubset(QString delimiter, sv_frame_t f0, sv_frame_t 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