While trying to make my record program work I wanted to compare it with the “Recording” sample, and found out that it too does not work.
The problem appears to be FSOUND_Record_StartSample call that returns an error “An invalid parameter was passed to this function”.
This happens with fmod 3741 on mac OSX 10.4.2
The example from fmod 40032 fails too using “Core audio”, “Built in audio” as playback device, “iSight” as recording device when recording the 5 seconds block (with “r” key) the program exits with error
FMOD error! ( 58 ) The sound created exceeds the allowable input channel count. This can be increased with System::setMaxInputChannels.
[quote:342v4cl5]looks like it is working fine here on the iMac. What sound device are you trying to record with?[/quote:342v4cl5]
The sample from 3741 does not let you choose recording device, the OS default is iSight.
Just tried to set the default input to “line in”, it seems to work (I don’t have anything connected to it, so it is mute but there are no errors).
The one from 4032 still does not work
It seems iSight only supports mono recording. This way the “recording” sample works, using Sound Manager. With Core Audio the playback is twice as fast as it should be…
And it seems that the saved wave file is invalid
The iSight must be hard to deal with, Skype for mac used to have a lot of problems with it too.
I’m buying an USB mic so I’ll be able to experiment better.
Well, the correct format for it appears to be 48KHz mono. 44100 mono also works, but the effective sampling rate then appears to be again 48000.
By the way this is nice, the exinfo.defaultFrequency is a suggestion, then the system or the device select their frequancy… is this correct?
Ah, the wav writer function has to be a little different for the mac. The PowerPC is a Big Endian processor, so you have to swap endianess of ints before writing them to the wav file.
Please login first to submit.