[英]how to add images for buttons in visual studio 2005 with windows CE?
[英]Add a custom sound in Windows Ce 5.0 visual studio 2005
我試圖找出如何將自定義聲音文件放入設備並從我的應用程序(Visual Studio 2005中的Windows CE 5.0)播放的信息。
據我所知,有可能通過“ coredll.dll”發出“嗶”的聲音。 關鍵是要制作一個自定義的游戲並播放該游戲。
有什么可能嗎?
謝謝指教
首先驗證設備正確播放音頻。 導入System.Media
命名空間並使用按鈕播放聲音。
SystemSounds.Asterisk.Play();
如果這樣做有效,則可以嘗試.wav文件。 您可以將文件從計算機上的C:\\Windows\\Media
目錄復制到設備。
SoundPlayer sound_player = new SoundPlayer(@"\DiskOnChip\tada.wav");
sound_player.Play();
這樣可以成功播放文件。
這需要.NET CF 3.5,它將無法在.NET CF 2.0中運行
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.