| Reply | « Previous Thread | Next Thread » |
|
Hi All,,,,
I want to play more number(15) of files continuously .. For playing two audio files i Used two Player and when first player reaches the END_OF_MEDIA i started the second one.. Please help me how to play more number of files......... Urgent plz......... thankz........ |
| senthilkumar05 |
| View Public Profile |
| Find all posts by senthilkumar05 |
|
how about something like this as an idea for starters?
Code:
// create an array of tunes
String tuneArray[] = new String[15];
tuneArray[0] = "/myTune1.mp3";
...
...
tuneArray[14] = "/myTune15.mp3";
// keep track of current tune
byte currentTune = 0;
// start the sequence off
myPlayer = Manager.createPlayer(..... tuneArray[0] );
myPlayer.start();
// as soon as a player finishes start the next
playerUpdate(..... ) {
if ( event == "END_OF_MEDIA" ) {
if (currentTune < tuneArray.length() ) currentTune +=1;
else currentTune = 0;
myPlayer = Manager.createPlayer(..... tuneArray[currentTune] );
myPlayer.start();
}
}
Last edited by swc43@blueyonder.co.uk : 2006-03-01 at 17:46.
|
| swc43@blueyonder.co.uk |
| View Public Profile |
| Find all posts by swc43@blueyonder.co.uk |
|
Hi senthilkumar05,
What do you mean with "I want to play more number(15) of files continuously"? Is it about playing 15 audio files without delay between them? I ever tried the way that swc43 suggested. Actually I tried only 1 audio files (wav), but I devided the file into array of bytes (20 kb) and tried to play every array of bytes simultaneously. But there's a delay on the music when the player changed from player 1 to player 2. Maybe it because I closed the first player before start the second player. I did it because seem my device cannot play more than 1 player in one time (I use Nokia 6270 to test it). Hi swc43, is there any nokia device that can start 2 player in one time? Maybe this link give an idea :D http://developer.sonyericsson.com/si...ous_sounds.jsp |
|
Hi senthilKumar,
i dont think you can start two players simultaneously.Only if the player that is under action is closed,then the second player can be started...i dont think that by any other means you can start the second player... Regards Soku |
|
HI all,
I dont know of any Nokias that can use more than one prefetched player at a time - the sony phones in the link you gave are the only ones I know of and even then this applies only to one midi and one wav - no other combinations. |
| swc43@blueyonder.co.uk |
| View Public Profile |
| Find all posts by swc43@blueyonder.co.uk |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Audio playing over RTP on 6600 and 6620. | ravinathwani | Symbian Media (Graphics & Sounds) | 5 | 2008-05-24 10:49 |
| Playing audio streaming from small chunks. | khurshed79 | General Symbian C++ | 1 | 2007-07-09 10:49 |
| Problems playing some wav audio formats using MMAPI (WTK22) | sandromancuso | Mobile Java General | 0 | 2005-01-18 18:03 |
| Garbled audio while playing wav files in 7650 | rajeevc | Mobile Java Media (Graphics & Sounds) | 0 | 2004-08-16 14:45 |
| Playing MP3 files | pawans | Symbian Tools & SDKs | 0 | 2003-03-31 17:59 |