Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Play sound .aac

 
Jordi Marques
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic