0
0

First thanks to all people answering my newbie questions.

I trying to get recording work for two days now. What’s my problem?
I want to record a sample and then play it while recording. I read about the problem with the overunning pointers but first I have to get recording work.
Here is my VB Code (perhaps somebody can find the error):

Private Sub Form_Load()
FSOUND_Init(44100, 32, 0)
FSOUND_SetOutput (FSOUND_OUTPUT_WINMM)
FSOUND_SetDriver (0)
FSOUND_SetMixer (FSOUND_MIXER_QUALITY_AUTODETECT)
FSOUND_Record_SetDriver (0)

samp1 = FSOUND_Sample_Alloc(FSOUND_UNMANAGED, RECORDLEN, FSOUND_16BITS, 44100, 255, 128, 255)
FSOUND_Sample_SetMode(samp1, FSOUND_LOOP_NORMAL)

test = FSOUND_Record_StartSample(samp1, True)
end sub

Private Sub Form_Unload(Cancel As Integer)
FSOUND_Record_Stop
FSOUND_Close
End Sub

Private Sub Timer1_Timer()
Label1.Caption = FSOUND_Record_GetPosition
End Sub

Label1.Caption always gets 0 as value or is it recording while FSOUND_GetRecording still gives 0 back?

Can somebody help me?

  • You must to post comments
0
0

well, try to check the values you get from set(record)driver/sample

and, are you sure your soundcard supports full duplex (rec and paly at the same time) ?

  • You must to post comments
0
0

FSOUND_SetDriver(0) returns 0
FSOUND_SetOutput(FSOUND_OUTPUT_WINMM) returns 0
FSOUND_SetMixer(FSOUND_MIXER_QUALITY_AUTODETECT) returns 0
FSOUND_Record_SetDriver(0) returns 1

I think my Soundblaster Life! 5.1 supports Full Duplex.

  • You must to post comments
0
0

FSOUND_SetDriver(0) returns 0
FSOUND_SetOutput(FSOUND_OUTPUT_WINMM) returns 0
FSOUND_SetMixer(FSOUND_MIXER_QUALITY_AUTODETECT) returns 0
FSOUND_Record_SetDriver(0) returns 1

I think my Soundblaster Life! 5.1 supports Full Duplex.

  • You must to post comments
0
0

I tried to use the setdriver etc. commands before init Fmod but then my Visual Basic quits with an error.
So I tried to init Fmod without setdriver commands (I think then it is using the standart values isn’t it?)

Private Sub Form_Load()
FSOUND_Init(44100, 32, 0)
samp1 = FSOUND_Sample_Alloc(FSOUND_UNMANAGED, RECORDLEN, SOUND_16BITS, 44100, 255, 128, 255)

test = FSOUND_Record_StartSample(samp1, False)

end sub
…. and so on

samp1 returns 0
test resturns 0

FSOUND_Record_GetPosition still gives 0 back.

Sorry for my newbie problems but I’m really trying to get along with it.
Another question:
I don’t even know why FSOUND_GetDriverName gives a long value back. Is it some kind of pointer? I don’t know how to use it in Visual Basic.

Sorry for my newbie questions!!!

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.