0
0

Hello all,

I have a problem with the record.

I can listen to music but not record.

[code:3lz995ur]

define SECONDS 500

//Initializing fmod
...

FSOUND_SAMPLE *samp1;
samp1= FSOUND_Sample_Alloc(0, 44100 * SECONDS,FSOUND_LOOP_NORMAL | FSOUND_NORMAL,44100,255,127,1);
if(!samp1) printf("ERROR\n");

if(!FSOUND_Record_StartSample(samp1,TRUE)) printf("ERROR\n");

while(FSOUND_Record_GetPosition() <(44100*SECONDS) && !kbhit())
{
printf("Record Position: %d\n",FSOUND_Record_GetPosition());
Sleep(10);
}

...

[/code:3lz995ur]

The pointer is stange
[code:3lz995ur]
Record Position:13465600
Record Position:16760832
Record Position:20121600
Record Position:20873216
Record Position:20873216
Record Position:...
Record Position:20873216
Record Position:21075968
Record Position:...
Record Position:21075968
Record Position:22048768
Record Position:20873216
Record Position:...
Record Position:20873216
Constraint error
[/code:3lz995ur]

  • You must to post comments
0
0

[Recording Settings]
start =>Sounds and Audio Devices => Audio panel =>
Click the Volume button in Sound Recording box => Click Options,Properties,Check the all checkbox, Click OK => Select Proper Device( Usually Mono out or Stereo out or Wave out)

If you set the wrong device to the default recording device your computer becames deaf. I don’t know about constraint error, but this is one reason make your computer deaf.

  • You must to post comments
0
0

Excuse me, I don’t speak very quite English.

I precise my problem:

  • I am under linux (Fedora Core 2)

  • Constraint error = Segmentation fault, excuse me I mixed 2 languages.

  • the recording lasts only 1-2 seconds what seems abnormal – I have to create a large buffer ,if not the program stop immediately. For example with 10 seconds, the program does not enter in the loop.
    The pointer makes jumps random length

  • My microphone is activated and function with other program

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.