c++ - how to use FMOD to record sound more than 5 seconds -


i came across fmod recently, , have been trying record sound c++ program using fmod. saw nice little example given in fmod documentation. easy understand, records audio 5 seconds.

how can use fmod record audio more 5 seconds, of custom size passed program?

troubleshooting done far-

  • i think need changes fmod::sound object, not quite sure what.

in example given fmod,
exinfo.length = exinfo.defaultfrequency * 25 * exinfo.numchannels * 5;

this 1 of parameters passed sound object, tried changing it, no effect.

  • changed value passed sleep function, reduced value, , commented line, had no effect on output of program.

i'd appreciate hints given on this. :)


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -