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?
- Anonymous asked 14 years ago
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.
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.
- Anonymous answered 14 years ago
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.
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.
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
Please login first to submit.