We must use FMOD for processing audio data coming from a data acquisition card (National Instruments USB cards, should someone be acquainted with them).
Is there any way to write a plugin for FMOD which would allow FMOD to use audio data from this data acquisition device? Basically, we speak about extending FMOD in order to be able to do something like this:
system->recordStart(acquisitionDriverID, sound, loop);
where acquisitionDriverID corresponds to data acquisition cards which are not proper "Windows soundcards", as mentioned above.
Thank you in advance for any suggestions/hints! If it is [b:6f1zk9vl]definitely[/b:6f1zk9vl] not possible, I would like to know that as well, since our clients need us to make a design decision in this project.
- acgrama asked 7 years ago
Even though they aren’t proper Windows soundcards, it is worth seeing if Windows has registered them as recording devices. Try plugging the device in and running the [b:3nrt2l1s]recording[/b:3nrt2l1s] example. If you can see your device in the third menu "Choose a RECORD driver", then it should be smooth sailing.
If not it should still be possible to get the data into FMOD. Let us know how it goes.
Thank you for the suggestion. Unfortunately, the device is not a soundcard, but more of a generic data acquisition card, so FMOD does not recognise it as valid input source.
What other way did you have in mind when you said it should be possible to get the data into FMOD? Thanks!
- acgrama answered 7 years ago
If it’s not a recording source, you’ll end up having to write the code to read the audio data from the card yourself. You can store it in a memory buffer, and then feed that data to FMOD to play as a custom stream. Have a look at the usercreatedsound example in the installed API.
The FMOD guys might have a better solution, but that’s what I’ve got.
Hope that helps!
- Adiss answered 7 years ago
Thanks both Adiss and Peter!
I have implemented a version where I have the NI card create a wav file which I then feed to fmod, but it would probably be better as you suggest.
By the way: if I recall correctly, I have to normalise the sample vaues I get from the NI card to [-1, 1] in order for fmod to be able to process them, right?
Thank you again!
- acgrama answered 6 years ago
Please login first to submit.