Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
I would like to play an audio file in left channel for a while and then in right channel for a while. How can I do it in VC++ or VC# programming? Thanks.
Posted
Comments
Sergey Alexandrovich Kryukov 26-Jun-14 14:01pm    
It looks like you need to create a copy of the wave in memory, with switched/blocked stereo channels. How to do it? It depends on what you are using. You could use DirectSound for preparing and playing of the waveforms...
—SA

1 solution

Actually, I've been developing a manufacturing test program to verify if a computer functioning well. Speakers should surely be verified. Playing a .wav file will verify if speakers are correctly but not detail. I was requested to verify left / right speaker separately and then at the same time. I went on wrong direction for I figuring out how to write codes to play sound file to left / right individually. But there is a easier way to do it. That's to record a sound file by record from left channel first, then right, then together. Playing such file can achieve my purpose. I don't need to solve it using programming.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900