0
0

Hi All,

I am a newbie to this but I really need to use fmod to take an input from the Line In of the soundcard and pass it to a beat detection OCX created by Adion at DJDecks.

There is a sample at http://users.esstec.be/adion/vb/bpmdetect/index.php

(I am using Delphi). All I need to do (?!) is work out how to make FMOD look at the Line-in rather than the MP3 stream.

Can anyone point me in the right direction?

Kind regards,

Matty

  • You must to post comments
0
0

If it doesn’t use any streams, then how does it continuously play? i used
FSOUND_PlaySound and it stops when it reaches the end, reguardless
where the loop flag for the recording sample is set. wait, what is i use
FSOUND_LOOP_NORMAL for the sample that is created? would that work?
Oh, and when i play the sample after i start recording it, there is a lot of
crappy noisesjust like i had thought. if i pause for a few milliseconds it doesnt
do that

  • You must to post comments
0
0

Yes, Brett said right.

You can just use fmod recording features instead of recording by yourself.
But you still need to use mixer api’s to enable line in source if you want to record line in!!

  • You must to post comments
0
0

well, i got it to work with the record api. I don’t just want to use line in
i want to use Mic too. so the user would have to select the input (of course)

  • You must to post comments
0
0

Brett, isn’t there a way to open the line in with Win MM and then
feed the data to FMOD as a stream of somesort, much like the way
Karlkox uses the input plugins from winamp to feed the streaming data
to FMOD?

  • You must to post comments
0
0

The reply is already in your question: use custom user streams!
Check out fmod documentation.
You may also use a DSP unit to load data, but custom user streams are made exactly to do what you want!

  • You must to post comments
0
0

Ok, so i have to use custom streams. How does winamp open the linein?
I checked the fmod documentation and it gave me a headache, it is way
over my head. First off, what do i need to set it up? I assume i need
a buffer for the stream data… Win MM should supply that right? so
how do i “feed” fmod the live data? if any one can hel that would be cool.

  • You must to post comments
0
0

I don’t want to record anything, i just want live spectrum data. I’ve done
it before with winmm, but, i don’t like the wave data it provides. That is why
i want to do it with FMOD, plus, i can add dsp and FX right?

  • You must to post comments
0
0

Excuse me, but nci told that he wants to do a spectrum recording wave data and (maybe) using fmod fft functions, isn’t it?

winamp doesn’t open line in, but just records the currently selected option in the recording mixer, as far as I know.

You have to select line in by yourself or use the mixer api’s (don’t ask me how) to change the selected source to line in.

Then if you want to record by yourself, you have to learn the waveIn api and if you want to feed fmod with something that must be analyzed/processed you need custom streams.

  • You must to post comments
0
0

You know about the plugin for winamp that uses line in for visual data.
How does it do that? If i use a recording stream and set it to loop and
use a function to keep the playback marker from overlapping the recording
marker would that do it? Is this how the winamp plugin works? I saw the
source code for FMOD player and saw the function. Does winamp
automatically select the line in as the recording source? I just don’t
understand why it seems so difficult. I really lack experience in this area.
Forgive me for sounding stupid if I did, but i just want someone to
point me in the right direction and i was trying to see if there was other
ways of doing this.

  • You must to post comments
0
0

Guest was me.

I know about linein plugin for winamp. As I said above it simply records selected input and feeds the output plugin. In the meantime it updates the spectrum data.
If you want to open line in recording you MUST use mixer api’s to select line in as a source and then record with waveIn. Since everything should be pseudo-realtime (I think) you must use very small buffers, and so feeding fmod to let it analyze the spectrum is not the best idea because it introduces another small latency.
You need no exotic things like overlapping or mark the stream someway. Just record and feed fmod as fast as your computer can.
But to record line in you have to deal with mixer api’s to change the recording source.

  • You must to post comments
0
0

So, a simple recording stream and that is it? ok, do i just use the
recording stream or do i use FSOUND_stream_create? if i use
FSOUND_stream_create how do i do it?

  • You must to post comments
Showing 11 results
Your Answer

Please first to submit.