Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

help me play audio  RSS feed

 
Greenhorn
Posts: 9
  • 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
 
Tung Xuan
Greenhorn
Posts: 9
  • 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?
 
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Likes 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
 
Ranch Hand
Posts: 158
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!