0
0

I need to capture the sounds from other applications like Winamp, MediaPlayer.

I found one way – FSOUND_Record_StartSample. Record the output sound and process it through “streamcallback”.

But it inevitablly generate gap when stream is processed in “streamcallback”. Because record should be stopped when the recorded sample is processed.

What can I do for realtime processing of recorded information without any gap?

  • You must to post comments
0
0
  1. record in loop mode
    FSOUND_Sample_SetMode(samp, FSOUND_LOOP_NORMAL);
    FSOUND_Record_StartSample(samp, true);

    1. stop record
      FSOUND_Record_Stop()

    2. make a stream with sample
      stream = FSOUND_Stream_Create(streamcallback, RECORDLEN, FSOUND_16BITS | FSOUND_STEREO, 44100, samp)

    3. play stream silently. and process data.

    Go through step1 to step4 again and again.

    Anyway, there is noway to process all the data out from speaker. Because, I should stop the recording to process the sample data made by recording.

    So, it generates gap. And I want to delete this gap. Is there anyway?

    p.s. What I’m doing is fairly same to Mp3Dancer( http://www.mp3dancer.com).

  • You must to post comments
0
0

========================================

  1. record in loop mode

=>

Looping is just to prevent overflowing error. Also I don’t want to create the variable “samp” repeatedly.

========================================

  1. play stream silently. and process data.

=>

  1. play stream silently with attached DSPCallback function. And access each data in DSPCallback function through the variable called “newbuffer”.

========================================

  • You must to post comments
0
0

[quote]accessable by lock/unlock[/quote]

I did create the stream because it is more familiar.
Currently I’m using lock mechanism.

Sound capturing by “FSOUND_Record_StartSample”. And the beat detection is done based on the FSOUND_SAMPLE* create by recording.

Next problem is about the generacity. Because it is another part I will make another thread.

Thanks brett. And Thanks for your generosity.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.