comparison data/model/DenseTimeValueModel.h @ 1038:cc27f35aa75c cxx11

Introducing the signed 64-bit frame index type, and fixing build failures from inclusion of -Wconversion with -Werror. Not finished yet.
author Chris Cannam
date Tue, 03 Mar 2015 15:18:24 +0000
parents 59e7fe1b1003
children 9f4505ac9072
comparison
equal deleted inserted replaced
1037:bf0e5944289b 1038:cc27f35aa75c
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