简体   繁体   中英

how do I write Pronto code into .wave file in android(Java)

i am working to make remote functionality in android for example i have Pronto Hex Code

And I want to convert the above into wave file to and after converting I also want to play the wave file with Medial player

For example the above is to on the device and in my activity i have button and when i click to that button the audio is playing, and i have device which generates the signal when i connect that to my android phone on 3.5mm jack

here is a python code: http://rtfms.com/wp-content/rtfms-com/pronto_code_to_wav.py

您可以查看remotecentral的此链接http://www.remotecentral.com/cgi-bin/mboard/everything_else/thread.cgi?266从第四篇文章中读取,您可以使用Irp主库从Pronto十六进制代码创建wave文件

如果您要以{12,51,45,78,45,14}的形式将其转换为红外猝发率,则只需将十六进制代码转换为十进制,例如:0000 0002 010d应该看起来像int[] burst ={0,2,543}//the numbers is not correct just example ,您不要忘记频率。

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