简体   繁体   English

将短信号发送到固定频率的音频插孔

[英]Send a short signal to the audio jack of fixed frequency

I want to send a short signal with a fixed frequency of 15 000 HZ to the audio jack. 我想将固定频率为15 000 HZ的短信号发送到音频插孔。 That will be feasible on the Windows Phone 8 platform? 在Windows Phone 8平台上可行吗?

Thanks in advance 提前致谢

It is possible to generate any sound you want on Windows Phone 8. If user has something attached to the audiojack, device will send sound there. 可以在Windows Phone 8上生成任何想要的声音。如果用户将某些东西连接到音频插孔,则设备将在那里发送声音。 If there is nothing, device will play the sound on speaker. 如果没有声音,设备将在扬声器上播放声音。 Sending sound only to jack and not to speaker is not possible, from what I know. 据我所知,仅向插孔而不向扬声器发送声音是不可能的。

The easiest way to generate custom sound is to follow this article from Charles Petzold and create custom media source: as seshuk suggested: Musical Instruments for Windows Phone or Streaming Audio in Windows Phone 生成自定义声音的最简单方法是遵循Charles Petzold的这篇文章并创建自定义媒体源:如seshuk所建议: Windows Phone乐器Windows Phone中的 流音频

Update: Hey, I found an article on developer.nokia.com on how to detect if headset is attached to the device 更新:嗨,我在developer.nokia.com上找到了有关如何检测耳机是否已连接到设备的文章。

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

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