painting images and playing sounds at the same time???

Reply

Join Date: Jun 2008
Posts: 46
Reputation: zyaday is an unknown quantity at this point 
Solved Threads: 1
zyaday zyaday is offline Offline
Light Poster

painting images and playing sounds at the same time???

 
0
  #1
Aug 22nd, 2008
hey, I'm having a problem in getting this programm right.. this is what it does...in every 1000ms it paint an image.. I'm using a new thread to paint the image....the thread taking care of the paining then creats a new thread to play the sound..But what i want is to paint the image while it is playing the sound............can anyone here help?
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,355
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 500
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: painting images and playing sounds at the same time???

 
0
  #2
Aug 22nd, 2008
Why not just start the sound and then paint the image in the same thread?
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 46
Reputation: zyaday is an unknown quantity at this point 
Solved Threads: 1
zyaday zyaday is offline Offline
Light Poster

Re: painting images and playing sounds at the same time???

 
0
  #3
Aug 25th, 2008
the sound takes around maybe half a second to finish.....and in one thread, was doing it sequencially...that's not what i want ...I 'm hoping atleast there to be some mixing between the two....but thanks....any more help would be appreciated..
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 46
Reputation: zyaday is an unknown quantity at this point 
Solved Threads: 1
zyaday zyaday is offline Offline
Light Poster

Re: painting images and playing sounds at the same time???

 
0
  #4
Aug 25th, 2008
and another problem with it was that when i played the sound on the same thread..the time of playing of the sound got unpredictable..at times it even played the sounds after finishing painting all the images.....
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,355
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 500
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: painting images and playing sounds at the same time???

 
0
  #5
Aug 25th, 2008
You could use two Executors to separately submit sound and graphic update tasks.
Last edited by Ezzaral; Aug 25th, 2008 at 12:29 pm.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 46
Reputation: zyaday is an unknown quantity at this point 
Solved Threads: 1
zyaday zyaday is offline Offline
Light Poster

Re: painting images and playing sounds at the same time???

 
0
  #6
Aug 26th, 2008
thanks Ezzaral..i'll see what I can do with that
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC