Playlist Generator
1.0
|
00001 // 00002 // echoprint-codegen 00003 // Copyright 2011 The Echo Nest Corporation. All rights reserved. 00004 // 00005 00006 00007 #ifndef CODEGEN_H 00008 #define CODEGEN_H 00009 00010 // Entry point for generating codes from PCM data. 00011 #define VERSION 4.10 00012 00013 #include <memory> 00014 #include <string> 00015 00016 00017 using namespace std; 00018 00019 00020 class Codegen { 00021 public: 00022 Codegen(const float* pcm, unsigned int numSamples, int start_offset); 00023 00024 string getCodeString(){return _CodeString;} 00025 int getNumCodes(){return _NumCodes;} 00026 float getVersion() { return VERSION; } 00027 private: 00028 00029 string _CodeString; 00030 int _NumCodes; 00031 }; 00032 00033 #endif