You Are Here:

Community: Developer Discussion Boards

#1 Old RE: 64kB Limit when Reading from JAR File (Series 60 Concept Beta 0.1) - 1970-01-01, 02:00

Join Date: Mar 2003
Posts: 176
Location: Helsinki, Finland
jp_fn's Avatar
jp_fn
Offline
Regular Contributor
Hi,

Could you please tell me what sound file type you are using. And does this problem occur with Nokia UI API or MM API or both?

Best Regards,
Juha-Pekka
Forum Nokia
Reply With Quote

#2 Old 64kB Limit when Reading from JAR File (Series 60 Concept Beta 0.1) - 2002-12-30, 12:00

Join Date: Mar 2003
Posts: 27
holtsch
Offline
Registered User
I had been wondering for a while why the Series 60 Concept Emulator Beta 0.1 was playing some of the sounds, and not others. Now I found out: when the soundfile is larger than 64kB, it doesn't get loaded completely. The code for loading simply stops (probably exactly at 64kB) and that's it. No error message, no nothing...

How can that be?

The code looks like this (and works fine on a real 7650):

InputStream is = this.getClass().getResourceAsStream("/"+uriPath);
ByteArrayOutputStream boas = new ByteArrayOutputStream();
int ch = 0;
while ((ch = is.read()) != -1) {
boas.write(ch);
}
data = boas.toByteArray();
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