0
0

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

thanks
Davide

  • You must to post comments
0
0

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.

ciao
Davide

  • You must to post comments
0
0

[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

  • You must to post comments
0
0

Now it says “Error! Recording not supported on this device”. I changed all the 44100 in main.c with 48000. Is this fine? With Line it it works.

Anyway I’ll try to port everything to fmod 4, and see what happens.

thanks
Davide

  • You must to post comments
0
0

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.

ciao
Davide

  • You must to post comments
0
0

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.

ciao
Davide

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.