Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1092] Unable to play certain sound files in Android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionFixed
Resolution Date2014-06-13T01:18:57.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy
Labelsandroid,, defect
ReporterTrevor Chong
AssigneeShuo Liang
Created2014-05-29T22:51:14.000+0000
Updated2016-03-08T07:37:26.000+0000

Description

I'm trying to just simply play a sound file on my Android device a Samsung Galaxy S3. This works fine on my genyMotion sim and iOS sim/device. For some reason, I tried my timer.wav and newmail.wav and they won't any sounds. Only the cricket one works fine. var timerSound = Ti.Media.createSound({ url: "/etc/timer.wav", preload:true }); timerSound.play();

Attachments

FileDateSize
example.zip2014-05-29T22:51:14.000+00003352635

Comments

  1. Shuo Liang 2014-06-11

    Hi, I tested your code and sound file with my Sammung Galaxy, it works fine, can't reproduce your problem. So there is some suggestion for you. 1.Try to uninstall app from the device before doing the test. 2.Clean the project (Menu project -> clean). 3.Max the volume of your device, as the timer.wav and newmail.wav sound is quite light and short. 4.Try to update the titanuim SDK to 3.2.3 version (latest stable version). Hope this will help you. Regard, Shuo
  2. Trevor Chong 2014-06-13

    Thanks. Seems like 3.2.3 fixed it.

JSON Source