2011-01-26
続・WindowsPhone7/XNAでBGMを
XNA, Windows Phone 7 | |
BGMを鳴らす時に、例外が出る原因がわかりました。
「ZuneでPCと実機が繋がっているとダメ」
ということのようです。
MSDN公式にサンプルコードを見つけました。
http://create.msdn.com/en-US/education/catalog/sample/windows_phone_music_manager
これは「そういう仕様だ」と思っておいた方が良いのですかねぇ。
・・・と思っていたら、
http://forums.create.msdn.com/forums/p/70046/427547.aspx
>In the Sounds Overview, you will find the note that XACT is not supported on Windows Phone.
だそうです。MediaPlayer周りで調べるしかなさそうですね。