I can’t seem to get FMOD to record microphone input (for visualisation purposes) when the iDevice is connected to HDMI output (as in to a external monitor). All fine when disconnected from HDMI. Has anyone achieved this? Tips?

This is how I’m setting up the recording. Perhaps it is a frequency issue? How would I detect the correct frequency to sample when connected via HDMI?

[code:3pfowvsk] FMOD_IPHONE_EXTRADRIVERDATA extradriverdata; memset(&extradriverdata, 0, sizeof(FMOD_IPHONE_EXTRADRIVERDATA));

extradriverdata.forceMixWithOthers = true;
extradriverdata.forceSpeakerOutput = true;

result = audioSystem->init(32, FMOD_INIT_NORMAL, &extradriverdata); 

ERRCHECK(result, @"setupForRecording: init");

//  Create 5 seconds of empty looped sound to record into
FMOD_CREATESOUNDEXINFO  exinfo      = {0};

memset(&exinfo, 0, sizeof(FMOD_CREATESOUNDEXINFO));

exinfo.cbsize           = sizeof(FMOD_CREATESOUNDEXINFO);
exinfo.numchannels      = 1;
exinfo.format           = FMOD_SOUND_FORMAT_PCM16;
exinfo.defaultfrequency = 44100;
exinfo.length           = 44100 * sizeof(short) * exinfo.numchannels * 5; 

recordedSoundLength = exinfo.length;

result = audioSystem->createSound(NULL, FMOD_2D | FMOD_SOFTWARE | FMOD_LOOP_NORMAL | FMOD_OPENUSER, &exinfo, &microphoneSound);

ERRCHECK(result, @"setupForRecording: createSound");[/code:3pfowvsk]
  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.