简体   繁体   中英

Adjust Balance When Playing Audio in C#

Is there a way to adjust the left/right balance when playing a sound in C# using the built in SoundPlayer class ? I don't want to adjust the overall system balance, just the balance for the sound the program is playing.

Sound Player a simple lib to play wave files so dont think it has the capability. You can check the AXWindowsMediaPlayer for advance functionality

If you want to stick with SoundPlayer , you can create your Stream -derived class that will wrap around original wave file, but will manipulate sound samples and adjust left and right volume to your liking.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM