0
0

Essentially I am trying to program the Recording demo but am running into runtime errors. The details follow, and I greatly appreciate any help that may be provided.

The call itself:

[code:2v6m9rw3]
fmod_result = system->recordStart( record_driver, sound, false );
// fmod_result == FMOD_ERR_FORMAT
[/code:2v6m9rw3]

The creation of [b:2v6m9rw3]sound[/b:2v6m9rw3]

[code:2v6m9rw3]
FMOD::Sound* sound;

// . . .

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

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

result = system->createSound( 0, FMOD_2D | FMOD_SOFTWARE | FMOD_OPENUSER, &exInfo, &sound );
[/code:2v6m9rw3]

And [b:2v6m9rw3]record_driver[/b:2v6m9rw3] is one of the three:

[code:2v6m9rw3]
Default Input Device
Monitor of Internal Audio Analog Stereo
Internal Audio Analog Stereo
[/code:2v6m9rw3]

System Information

[code:2v6m9rw3]
Ubuntu 10.04
64bit
FMOD 4.42.03 64
[/code:2v6m9rw3]

  • You must to post comments
0
0

numchannels = 3 is probably the issue. A recording device will usually only support mono or stereo

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.