summaryrefslogtreecommitdiff
path: root/rotord/src/vampHost.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-12-08 10:55:03 +0000
committerComment <tim@gray.(none)>2013-12-08 10:55:03 +0000
commit1d05d2380bb4f1fd265aef55744f432af38b08aa (patch)
tree89c1c15497149951d4b99938ad932abde42eae14 /rotord/src/vampHost.h
parente04516069c71a5a1e32e6a5fbf0eb5b86dcfc5a2 (diff)
switched signals to double and random to uint16
Diffstat (limited to 'rotord/src/vampHost.h')
-rw-r--r--rotord/src/vampHost.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/rotord/src/vampHost.h b/rotord/src/vampHost.h
index 856a2cc..e44e981 100644
--- a/rotord/src/vampHost.h
+++ b/rotord/src/vampHost.h
@@ -52,10 +52,10 @@ namespace vampHost {
class QMAnalyser{
public:
int process(const string soundfile);
- float get_progress();
+ double get_progress();
vector<float> beats;
private:
- float progress;
+ double progress;
Poco::Mutex mutex; //lock for progress data
};
class Analyser{
@@ -64,7 +64,7 @@ namespace vampHost {
bool init(const string &soname,const string &id,const int &_channels,const int &_bits,const int &_samples,const int &_rate,int outputNo,const map<string,float> &params);
void process_frame(uint8_t *data,int samples_in_frame);
void cleanup();
- float get_value(const float &time);
+ double get_value(const double &time);
//map<double,int> features;
map<float,feature> features;
//map<time,featureNo>
@@ -77,7 +77,7 @@ namespace vampHost {
RealTime rt;
int channels,bits,samples,rate;
int bytes,stride;
- float scale;
+ double scale;
int blockSize,stepSize,overlapSize,finalStepsRemaining,currentStep,outputNo;
int in_block,blocks_processed;
string output;
@@ -89,7 +89,7 @@ namespace vampHost {
string getQMBeats(const string soundfile);
void printFeatures(int, int, int, Plugin::FeatureSet, ostream &, bool frames);
- void getTimestamps(int output,Plugin::FeatureSet features, vector<float>& out);
- void rotorGetFeatures(int frame, int sr, int output,Plugin::FeatureSet features, vector<float>& out, float& progress);
+ void getTimestamps(int output,Plugin::FeatureSet features, vector<double>& out);
+ void rotorGetFeatures(int frame, int sr, int output,Plugin::FeatureSet features, vector<double>& out, double& progress);
}