如何在windows c ++ / c#编程中控制音频左右声道控制? [英] How to control audio left right channel control in windows c++ / c# programming?

查看:323
本文介绍了如何在windows c ++ / c#编程中控制音频左右声道控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在左声道播放音频文件一段时间,然后在右声道播放一段时间。如何在VC ++或VC#编程中完成?谢谢。

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.

推荐答案

实际上,我一直在开发制造测试程序,以验证计算机是否运行良好。演讲者一定要经过验证。播放.wav文件将验证扬声器是否正确但不详细。我被要求分别验证左/右扬声器,然后同时验证。我找错了方向,因为我弄清楚如何编写代码来单独向左/右播放声音文件。但有一种更简单的方法可以做到这一点。那就是先从左声道录制声音文件,然后再录制,然后放在一起。播放这样的文件可以达到我的目的。我不需要使用编程来解决它。
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.


这篇关于如何在windows c ++ / c#编程中控制音频左右声道控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆