This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Play sound .aac  RSS feed

 
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.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!