Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / Can't get wav file to play on device.

Author
Message
ThrOtherJoJo
13
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 29th Oct 2012 10:02
I can't get this wav file to play. It plays fine in Windows but when I deploy it to the droid it doesn't work. I'm compiling it through the Eclipse Environment with the device attached. I'm testing on a Samsung Galaxy III. Mp3 files played just fine.

I save the file from audacity 1.3 beta(Unicode) at 16 bit which is the only format it lets you choose from.

I'm using Visual Studio 2008 Enterprise Edition.
Tier 2 Template version 1.07
Eclipse Indigo


Here is the code.

Attachments

Login to view attachments
Ancient Lady
Valued Member
21
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 29th Oct 2012 15:59
Did you remember to copy the wave file into your <androidproj>/assets directory and is the file name spelled with exactly the same case as you use in your code? (Android is Linux based and is case sensitive.)

Cheers,
Ancient Lady
AGK Community Tester
ThrOtherJoJo
13
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 29th Oct 2012 16:29
Yes. It's in the assets folder and the case is the same.
Ancient Lady
Valued Member
21
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 29th Oct 2012 16:40
Where is stopIntesityMeter defined and initialised?

Cheers,
Ancient Lady
AGK Community Tester
ThrOtherJoJo
13
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 29th Oct 2012 17:57 Edited at: 29th Oct 2012 17:59
It's posted up above in the same file. I thought I copied the newest file onto the site.

Do you think bit rate could be the coulprit?


Ancient Lady
Valued Member
21
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 29th Oct 2012 18:07
It is possible that 16 bit is not okay on Android.

All of my wav files are "Wave PCM unsigned 8 bit,<varied Hz>,<varied kbps>,mono" and work fine all all tested devices (iOS 5.1/6.0, Android 3.2/4.1).

I use a purchased app (GoldWave) to manipulate my files and it lets me set all sorts of styles.

Cheers,
Ancient Lady
AGK Community Tester
ThrOtherJoJo
13
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 29th Oct 2012 19:17
I'm going to try to convert the wavs to your specs to see if that makes a different.

Thanks! I will keep you posted.
ThrOtherJoJo
13
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 30th Oct 2012 04:50
Quote: "It is possible that 16 bit is not okay on Android.

All of my wav files are "Wave PCM unsigned 8 bit,<varied Hz>,<varied kbps>,mono" and work fine all all tested devices (iOS 5.1/6.0, Android 3.2/4.1).

I use a purchased app (GoldWave) to manipulate my files and it lets me set all sorts of styles."


Thanks, Ancient Lady, that worked.

Now, next question. Is that an AppGameKit limitation or is it a Android limitation? Kinda of hard to believe that these new phones can't play 16 bit wav files.

Anyway, on to the next obstacle.
ThrOtherJoJo
13
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 4th Nov 2012 15:36
I actually got Wav PCM signed 16bit files to worked.
I must of typed in the name incorrectly.
Ancient Lady
Valued Member
21
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 4th Nov 2012 17:33
Android is Linux based and very case sensitive.

Cheers,
Ancient Lady
AGK Community Tester

Login to post a reply

Server time is: 2025-05-13 13:04:14
Your offset time is: 2025-05-13 13:04:14