简体   繁体   English

如何发送固定电压的Android音频插孔

[英]How to send fixed voltage Android audio jack

I have a small device that operates using the smartphones audio jack. 我有一台可以使用智能手机音频插孔操作的小型设备。 I would like to send a fixed amount of voltage in the audio jack in order for the device to operate. 我想在音频插孔中发送固定量的电压,以便设备运行。 I am using the AudioTrack in the MODE_STREAM. 我正在MODE_STREAM中使用AudioTrack。 I also have a buffer in which I write a sine signal of fixed frequency as found in here . 我还有一个缓冲区,可以在其中写入此处找到的固定频率的正弦信号。

It sends single tones to the audio jack. 它将单音发送到音频插孔。 Does it mean that the output voltage is fixed or it varies according to the sine signal? 这是否意味着输出电压是固定的或根据正弦信号而变化? Is there a way to ensure that the output voltage of the audio jack is at a fixed value? 有没有办法确保音频插孔的输出电压处于固定值?

Thanks! 谢谢!

To answer my question it seems that the AC output voltage is controlled by the sound volume level and it seems to be device dependent. 为了回答我的问题,交流输出电压似乎受音量控制,并且似乎与设备有关。 Thanks for the comment! 感谢您的评论!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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