File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Play sound .aac Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Play sound .aac" Watch "Play sound .aac" New topic
Author

Play sound .aac

Jordi Marques
Greenhorn

Joined: Dec 29, 2009
Posts: 1
Hi,

I am developing an application and I need to execute a file type sound. aac,

I run mp3 files

Player p1;
p1 = Manager.createPlayer(getClass().getResourceAsStream("/name_file.mp3"), "audio/mp3");
p1.realize();
p1.start();

I run wav files

Player p1;
p1 = Manager.createPlayer(getClass().getResourceAsStream("/name_file.wav"), "audio/x-wav");
p1.realize();
p1.start();

But I can not run aac files as follows

Player p1;
p1 = Manager.createPlayer(getClass().getResourceAsStream("/name_file.aac"), "audio/x-aac");
p1.realize();
p1.start();

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.

Greetings.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Play sound .aac