- Home /
How to use FMOD well?
Hello.
I need to record voice in Unity3D, so I plugin with FMOD. However, I cant use well since there arent enough example code in website. I found methods in FMOD about recording.
public RESULT getRecordNumDrivers (ref int numdrivers) { return FMOD_System_GetRecordNumDrivers(systemraw, ref numdrivers); } public RESULT getRecordDriverInfo (int id, StringBuilder name, int namelen, ref GUID guid) { return FMOD_System_GetRecordDriverInfo(systemraw, id, name, namelen, ref guid); }
public RESULT getRecordPosition (int id, ref uint position) { return FMOD_System_GetRecordPosition(systemraw, id, ref position); } public RESULT recordStart (int id, Sound sound, bool loop) { return FMOD_System_RecordStart(systemraw, id, sound.getRaw(), loop); } public RESULT recordStop (int id) { return FMOD_System_RecordStop(systemraw, id); } public RESULT isRecording (int id, ref bool recording) { return FMOD_System_IsRecording(systemraw, id, ref recording); }
Please give me some example code that I can use these methods. I need to record my voice in Unity. Please help me!
Answer by _Petroz · Nov 05, 2010 at 07:38 PM
Take a look at the FMOD 'recording' example.
You can find the fmod C# examples are in the F$$anonymous$$OD API install directory.
Answer by trilightguy · Jan 24, 2012 at 04:51 PM
You can use the plug in from Prime31 to record audio:
I used the audio plug to record voice and it worked well. I put out an iPhone game using it. I was using Unity 3.4 for that. It has good samples and is easy to integrate.
Good luck. -RoadwarriorX