0
0

Hello all,

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:
[code:6f1zk9vl]
system->recordStart(acquisitionDriverID, sound, loop);
[/code:6f1zk9vl]
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.
–Cristina.

  • You must to post comments
0
0

Hi Christina,

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.

-Pete

  • You must to post comments
0
0

Hi Peter,

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!

  • You must to post comments
0
0

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!

  • You must to post comments
0
0

Yeah Adiss is right, that is probably the best way to go.

  • You must to post comments
0
0

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!

  • You must to post comments
0
0

Yeah, float wavedata in FMOD is -1.0f to 1.0f.

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.