| Reply | « Previous Thread | Next Thread » |
|
I can play wavs on this device and am using the same wav properties as for other Nokia devices which have never given me any trouble:
Bit rate: 64kbps Audio sample size: 8 bit Channels: 1 (mono) Audio sample rate: 8 kHz Audio format: PCM I load the sample with: Manager.createPlayer(ByteArrayInputStream(myData), "audio/wav"); The sample plays but at the end there's a horrible sound like white noise. Is this format no good for this device? Any info on what works? cheers |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
Offline
Super Contributor
|
|
hi boinged,
does that specific file plays fine in device built-in native player? regards, Peter |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
Good idea, just managed to get it on the device and it plays fine though. I do have some midis loaded as well. I think I read something about making sure they are deallocated when I want to play something else so I'll try that.
|
|
Deallocating the previous player caused the application to completely lock up when switching from midi and wav, was ok from midi to midi.
|
|
IMHO you should use only InputStream rather than ByteArrayInputStream. The reason is that unfortunately real Nokia phones load all the data into the memory by calling once "read(byte[] data, 0, totalLenght)" method of the InputStream or SourceStream. This is VERY ugly, but this is how real Nokia code works. The ByteArrayInputStream buffers data, and possibly this is the reason for bad playing.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| WAV support for Nokia 6230i | heuven | Audio | 6 | 2006-04-08 20:18 |
| 6600 and WAV format | dathom | General Symbian C++ | 0 | 2004-03-03 04:50 |
| WAV format, sample rate etc for Series 60 (3650 and 7650) | marcilgen | Mobile Java Media (Graphics & Sounds) | 1 | 2003-12-09 21:24 |
| WAV format, sample rate etc for Series 60 (3650 and 7650) | marcilgen | Mobile Java General | 0 | 2003-12-09 20:03 |
| wav audio format for 7650 | topisystems | General Symbian C++ | 2 | 2002-08-23 07:41 |