Play two audio file in different different Left Right speaker
-
hi i want to play two sound file same time and want to listen the sound of these file on separtly on left and right speaker,means sound of one file should play on left speaker and second file should play on right speaker
-
hi i want to play two sound file same time and want to listen the sound of these file on separtly on left and right speaker,means sound of one file should play on left speaker and second file should play on right speaker
this is a nice and simple task: you only got to combine to wave files in a new stereo file. For further information you can consult: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/[^]
Press F1 for help or google it. Greetings from Germany
-
this is a nice and simple task: you only got to combine to wave files in a new stereo file. For further information you can consult: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/[^]
Press F1 for help or google it. Greetings from Germany
Thanks for giving reply I have no idea to handle this problem. I need sample code if is possiable.i think direct sound is the solution but not having correct API.
-
hi i want to play two sound file same time and want to listen the sound of these file on separtly on left and right speaker,means sound of one file should play on left speaker and second file should play on right speaker
If you want to do this programmatically, it's fairly straightforward as well. The actual method will depend on which audio API you're using. e.g. in DirectSound there's a "SetPan" method which can pan a buffer between left and right. So just load and play the two sounds, and set one to fully left pan, and the other to fully right.
There are three kinds of people in the world - those who can count and those who can't...
-
Thanks for giving reply I have no idea to handle this problem. I need sample code if is possiable.i think direct sound is the solution but not having correct API.
You can download the Direct X SDK from Microsoft, as well as a lot of useful information about it from here. It's fairly easy to use, and comes with plenty of sample code to get you started.
There are three kinds of people in the world - those who can count and those who can't...
-
You can download the Direct X SDK from Microsoft, as well as a lot of useful information about it from here. It's fairly easy to use, and comes with plenty of sample code to get you started.
There are three kinds of people in the world - those who can count and those who can't...
Thank you so much,