Hello,
I’m new at FMOD c++ version.
I’m looking for a way to get the sound signal (f(t)).
I’ve tried this code :
But, it never returns any data…
Could you help me ?
Thanks.
F.
#include
using namespace FMOD;
int main()
{
System *system;
unsigned int version;
Sound *sound;
System_Create(&system);
system->getVersion(&version);
std::cout << version ;
system->init(2, FMOD_INIT_NORMAL, NULL);
system->createSound(“essai.mp3”, FMOD_DEFAULT, 0, &sound);
FMOD_RESULT res;
do{
int val = -1;
unsigned int read;
res = sound->readData(&val, 1,&read);
std::cout << val << std::endl;
}while(res != FMOD_ERR_FILE_EOF);
return 0;
}