You Are Here:

Community: Developer Discussion Boards

#1 Old How To Play Amr - 2004-05-29, 14:19

Join Date: Mar 2003
Posts: 21
Location: Istanbul
alperay
Offline
Registered User
Hi,

1-) As far as I know AMR files are supoorted by all nokia phones. Is this correct ?

2-) When using nokia sound classes on nokia7650 , How can I call

com.nokia.mid.sound.Sound pl;
byte [] bf = new byte [1000];
byte [] flBuf;
ByteArrayOutputStream outBuf = new ByteArrayOutputStream(1000);

void initItNokia(String filename, int format) {
canInit=false;
InputStream is = getClass().getResourceAsStream(filename);
int szBuf;
try {
while( (szBuf=is.read(bf,0,bf.length)) != -1) {
outBuf.write(bf,0,szBuf);
}
flBuf = outBuf.toByteArray();
try {
pl.init(flBuf,format);
} catch (Exception e) { }
} catch(Exception e) {System.out.println(e.toString()); }
finally {
canInit=true;
}
}


initItNokia("/abc.amr",pl.FORMAT_WAV); // RIGHT ?
..
..



Thanks
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