HTC HD - Crash when trying to play sound

5 posts / 0 new
Last post
loki1980
loki1980's picture
Offline
Mobile Conjurer
Joined: 15 Jun 2010
Posts:
HTC HD - Crash when trying to play sound

Hello there,

I am quite new to MoSync, so I hope this is not a trivial matter.

I am using the MoSync MoSyncSetup-2.3(r1465).exe nightly build.

I was trying the example given in http://www.mosync.com/documentation/manualpages/audio on how to play a sound file.
In the emulator everything was fine.

I wanted to try it for my available cell phone, an HTC HD, so i builded for HTC HD2 T8585, which I think is the closest configuration to the HD.

The application hanged and did not play the sound...

Should this be happening or is it a bug.

For the record I have tried succefully to run other applications on HD with the configuration for HD2...
If it is not a bug is there a way around this hip up?

Thank you

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Fredrik Eldh
Fredrik's picture
Offline
Mobile Sorcerer
Joined: 16 Feb 2009
Posts:

Our Windows Mobile runtime does not have support for any sound format except WAV. This is a known issue.

loki1980
loki1980's picture
Offline
Mobile Conjurer
Joined: 15 Jun 2010
Posts:

Hello there Fredrik, thanks for the quick reply.

I tried running the same example using a .wav file and not mp3.
The behavior was exactly the same, the application crushed...

Any pointers to resolve the situation?

Thanks you very much

Fredrik Eldh
Fredrik's picture
Offline
Mobile Sorcerer
Joined: 16 Feb 2009
Posts:

Perhaps you forgot to change the mime type in the .lst file. Instead of "audio/mpeg" for mp3, it must be "audio/x-wav" for .wav files.

Also, what exactly happens when the application crashes? Any error messages?

loki1980
loki1980's picture
Offline
Mobile Conjurer
Joined: 15 Jun 2010
Posts:

Great!Using x-wav the example worked fine:)

Still, while using audio/mpeg with .wav file I had no error message.The application hanged and was actually drawn minimized-not kiosked- to the area of windows mobile start bar...

Thank you for your quick response:)