File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java Micro Edition
Play sound .aac
Joined: Dec 29, 2009
Dec 29, 2009 04:11:39
I am developing an application and I need to execute a file type sound. aac,
I run mp3 files
p1 = Manager.createPlayer(getClass().getResourceAsStream("/name_file.mp3"), "audio/mp3");
I run wav files
p1 = Manager.createPlayer(getClass().getResourceAsStream("/name_file.wav"), "audio/x-wav");
But I can not run aac files as follows
p1 = Manager.createPlayer(getClass().getResourceAsStream("/name_file.aac"), "audio/x-aac");
My phone is a Nokia N85, and from the menu of my phone lets me
play sound files. aac is therefore evident that the phone allows playback of such files.
I appreciate any help or clue.
It is sorta covered in the
JavaRanch Style Guide
subject: Play sound .aac
unable to playback .mp3 file in WTK.
unable to playback .mp3 file in WTK
MIDlet Audio Doesn't Work
PLAY several players simulaneouly ?
Problems playing some wav audio formats using MMAPI (WTK22)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014