| Reply | « Previous Thread | Next Thread » |
|
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 |
|
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|