You Are Here:

Community: Developer Discussion Boards

#1 Old Help! Playing wav files error in 6600 - 2004-06-10, 09:09

Join Date: Jun 2004
Posts: 2
brianmei
Offline
Registered User
Hello,

code:
InputStream is = getClass().getResourceAsStream("/0.wav");
try {
Player player = Manager.createPlayer(is, "audio/x-wav");
player.addPlayerListener(this);
player.realize();
player.start();
}
catch (MediaException ex) {
stringItem2.setText("1:"+ex.getMessage());
}
catch (IOException ex) {
stringItem2.setText("2:"+ex.getMessage());
}

It runs well under the JDK:
Series 60 MIDP Concept SDK Beta 0.3.1, Nokia edition

However, an exception occurs when running in 6600
The exception is "Symbian OS error : -5"

Any idea?
Reply With Quote

#2 Old 2004-06-11, 02:58

Join Date: Jun 2004
Posts: 2
brianmei
Offline
Registered User
Problem solved. It's because the format of the wav files.
Reply With Quote

#3 Old 2004-07-01, 11:39

Join Date: Mar 2003
Posts: 9
mac1ej
Offline
Registered User
What format worked for you? Which one didnt?

Thanks,

Maciej
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia