You Are Here:

Community: Developer Discussion Boards

#1 Old Thumbs up Playing more audio files ? ...... - 2006-03-01, 05:54

Join Date: Feb 2006
Posts: 22
Location: India
senthilkumar05
Offline
Registered User
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........
Reply With Quote

#2 Old Re: Playing more audio files ? ...... - 2006-03-01, 17:39

Join Date: Jan 2005
Posts: 53
swc43@blueyonder.co.uk
Offline
Regular Contributor
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.
Reply With Quote

#3 Old Re: Playing more audio files ? ...... - 2006-03-02, 03:32

Join Date: Jul 2003
Posts: 37
cars2003
Offline
Registered User
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
Reply With Quote

#4 Old Re: Playing more audio files ? ...... - 2006-03-02, 13:04

Join Date: Feb 2006
Posts: 689
soku123
Offline
Super Contributor
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
Reply With Quote

#5 Old Re: Playing more audio files ? ...... - 2006-03-03, 12:04

Join Date: Jan 2005
Posts: 53
swc43@blueyonder.co.uk
Offline
Regular Contributor
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.
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
Similar Threads
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

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ