• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help me play audio

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ItDoesntWorkIsUseless Please TellTheDetails
 
Tung Xuan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Opera Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Lasagna is spaghetti flvored cake. Just like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic