0
0

I’ve been handed some code that I agreed to help a friend out on. It’s essentially a sound engine for mixing/playing, sounds, it’s written in Java and a good majority of the code is already finished. Here is my issue, it has code written to initialize one or two sound cards, using one card’s outbound for the main sound output and the second card’s output to preview sounds and judge if you want to add them into the mix.

Now the problem is that most computers, including the one this is being developed on, don’t have two separate sound cards to use this function. Now it would be nice if I could change the sound card initializations/declarations to simply use the left or the right channel of that sound card.

I’m unfamiliar with FMod’s functions for direction oriented output. And I’m not sure if there would be a quick painless way to change these soundcards to do that or not. Let me know if there’s any specific information you need, but any help would be greatly appreciated.

[code:3apesig4]
public FmodExEngine(int cardOne, int cardTwo){
initializeEngine();
stage = new Soundcard(cardOne,SOUNDBUFFERSIZE);
preview = new Soundcard(cardTwo,SOUNDBUFFERSIZE);
}
[/code:3apesig4]

  • You must to post comments
0
0

Ok, then. I guess I might just take a look through the tutorials to try to find out how position is controlled and how to use just the left or the right channel. Thanks anyways for those that did try to read through and possibly gave some time thinking about how to solve my problem.

  • You must to post comments
0
0

There is an example called multiplesoundcard that shows how to create 2 objects, one for each sound card.

To make all sounds come out in the left speaker or the right speaker is either achieved by simply calling setPan on all your channels, or you could write a system level (ie use System::addDSP) dsp unit that processes the pcm stream and moves it from one speaker to the other.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.