Sound not playing on device

I made a button to play a sound every time it’s touched, it works fine on the simulator but not on my device…here’s how my code looks like:

[code]local Button1 = display.newImageRect(“Button1.png”,65,63)
Button1:setReferencePoint(display.TopLeftReferencePoint)
Button1.x = 245 ;Button1.y = 340

local function playSound (event)
media.playEventSound (“Sound.mp3”)
Button1.isVisible = true;

return true;
end
Button1:addEventListener (“tap”, playSound)

[import]uid: 30766 topic_id: 13609 reply_id: 313609[/import]

MP3s are not supported with media.playEventSound() on iOS. Please look at the new audio APIs. [import]uid: 7563 topic_id: 13609 reply_id: 49957[/import]

Can I use CAF or AIF files instead of mp3 with the same media.playEventSound? [import]uid: 30766 topic_id: 13609 reply_id: 50025[/import]

CAF: It depends on what the codec you use.
AIF: Should work (assuming 16-bit linear PCM). WAV is better though (assuming 16-bit linear PCM, little endian).

[import]uid: 7563 topic_id: 13609 reply_id: 50044[/import]

it works with AIF, thanks [import]uid: 30766 topic_id: 13609 reply_id: 50051[/import]