本文介绍了音频文件:仅通过一个扬声器播放数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个简单的应用程序,可以进行扬声器测试。它首先要在左扬声器上播放,然后在右扬声器上播放(或基于选择)。由于无法直接实现,因此我试图覆盖备用字节。我在十六进制编辑器中签出,并且字节在备用对中重复(2个字节)。经过改写后,两个扬声器仍在播放声音。

I am working on a simple application which does speaker test. It is intended to first play on the Left Speaker then on Right one (or based on selection). As there is no way of achieving it directly, I am trying to overwrite alternate bytes. I checked out in Hex Editor, and bytes are do repeating in alternate pairs (2 bytes). When worked out with overwriting, it is still playing sound in both speakers.

我当前正在使用

我做错了吗?

这些是我在录制时可以使用的可用格式声音:

These are the available formats I can use while recording the sound:

Unsigned 8-bit samples 
Signed 8-bit samples
Unsigned 16-bit little-endian samples
Unsigned 16-bit big-endian samples
Signed 16-bit little-endian samples
Signed 16-bit big-endian samples


推荐答案

我认为您想研究使用AUPannerUnit或aupn,它控制左右立体声通道。应该有一个有用的AUPannerUnits.txt教程文件。

I think that you want to look into using AUPannerUnit, or aupn, which controls the left and right stereo channels. There should be an AUPannerUnits.txt tutorial file that is helpful.

来源:

这篇关于音频文件:仅通过一个扬声器播放数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-19 02:12