This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help me play audio

 
Tung Xuan
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i can take the name of songs in folder root and add list but i can not play audio.
I get this error:
please teach me how to fix it. thank a lot
 
Maneesh Godbole
Saloon Keeper
Posts: 10967
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
Tung Xuan
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm sorry, i have fix my post
thanks for reminding me
now you can show me how to fix this error?
 
Darryl Burke
Bartender
Posts: 5115
11
Java Netbeans IDE Opera
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For future reference, it's better to post a reply rather than edit an earlier post, as that takes away the context of a response and makes the forum thread difficult to follow.

That's not an error, it's what it says: a warning. here are some learning resources that will help you to both understand and fix it.
Using Threads in J2ME Applications
Networking, User Experience, and Threads
 
Walter Gabrielsen Iii
Ranch Hand
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your audio format might not be supported. Java ME makes no guarantees beyond what's specified in section A.2.2 from Mobile Service Architecture Specification Version 1.1.0b – 18-August-2008 (available by download from JSR-000248 Mobile Service Architecture ).

Audio formats from A.2.2 Content Formats:
1. 8 kHz, 8-bit linear PCM audio in WAV
2. AMR-NB* (AMR-NB support is NOT REQUIRED for compliant development tools, device emulators, or a reference implementation running on a device emulator.)
3. MIDI
4. SP-MIDI

Also see: javax.microedition.media.Manager ; and methods: .getSupportedContentTypes(), getSupportedProtocols(String content_type) of the Manager class. You can find out from Manager what additional audio formats your specific device supports.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic