Playlist Generator  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
Codegen_wrapper.mm
Go to the documentation of this file.
00001 /*
00002  *  Codegen_wrapper.cpp
00003  *
00004  *  Created by Brian Whitman on 7/10/10.
00005  *  Copyright 2010 The Echo Nest. All rights reserved.
00006  *
00007  */
00008 
00009 #include "Codegen.h"
00010 #include <string>
00011 
00012 const char* codegen_wrapper(const float*pcm, int numSamples) {
00013         //Codegen*c = new Codegen(pcm, (uint)numSamples, 0, false);
00014         Codegen*c = new Codegen(pcm, (unsigned int)numSamples, 10);
00015         string s = c->getCodeString();
00016         return s.c_str();
00017 }
00018