I’ve got an old turntable that I’d like to hook up to my sound card for playback, not recording. Since I’d like to actually hear the music, I’m trying to create a software preamp by using FMOD. I’m running into a few problems and wondering if maybe I’m just doing something wrong.
First of all, is this even possible? Does FMOD have the ability to boost the sound similar to what a receiver or stereo would do? I’m guessing it does, and I planned on just using the equalizer functions to boost the gain on a large number of frequencies. Does that make sense?
Secondly, is there a way to stream what is being recorded from the line-in directly to the speaker? I tried working with the recording example, but it didn’t seem to work. If I start recording and wait 5 seconds before starting playback, I only get 5 seconds worth of playback before it stops. I’d like it to just continuously record and playback. Is there a trick to this?
My code snippet is basically:
exinfo.cbsize = Marshal.SizeOf(exinfo);
exinfo.numchannels = 1;
exinfo.format = FMOD.SOUND_FORMAT.PCM16;
exinfo.defaultfrequency = 44100;
exinfo.length = (uint)(exinfo.defaultfrequency * 2 * exinfo.numchannels * 5);
result = fmod.createSound((string)null, (FMOD.MODE._2D | FMOD.MODE.SOFTWARE | FMOD.MODE.OPENUSER), ref exinfo, ref sound);
result = fmod.recordStart(0, sound, true);
/// some stuff for waiting
fmod.playSound(FMOD.CHANNELINDEX.FREE, sound, false, ref channel);
I’ve tried searching and didn’t find anything that really fit my issues. If I’m duplicating a question, I’m sorry.
All help would be appreciated!!
- Jesster asked 6 years ago
Does the lack of response that this thread is getting indicate that FMOD is not the library for me? Is it not possible to playback audio from line-in immediately?
Sorry for the self-bump, I’d just like a yes/no answer so I can either stop trying or look elsewhere.
Thanks for the help
- Jesster answered 6 years ago
A turntable output level is very low, and is not strictly compatible with your sound card’s input. Most receivers that support turntable input have an analog amplifier in the circuit before mixing into the main audio path. You can make a preamp in FMOD, but it will probably be noisy.
You’ll also need to apply the RIAA EQ curve.
Regarding the record/play loop, the "Recording" example does work OK for me. You will need to periodically call the system update function.
Hope this helps!
- rcohen answered 6 years ago
Please login first to submit.