-
Java (
http://www.daniweb.com/forums/forum9.html)
| zyaday | Aug 22nd, 2008 3:26 am | |
| painting images and playing sounds at the same time??? 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? |
| Ezzaral | Aug 22nd, 2008 12:27 pm | |
| Re: painting images and playing sounds at the same time??? Why not just start the sound and then paint the image in the same thread? |
| zyaday | Aug 25th, 2008 9:23 am | |
| Re: painting images and playing sounds at the same time??? 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..:) |
| zyaday | Aug 25th, 2008 10:14 am | |
| Re: painting images and playing sounds at the same time??? 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..... |
| Ezzaral | Aug 25th, 2008 12:29 pm | |
| Re: painting images and playing sounds at the same time??? You could use two Executors to separately submit sound and graphic update tasks. |
| zyaday | Aug 26th, 2008 4:32 am | |
| Re: painting images and playing sounds at the same time??? thanks Ezzaral..i'll see what I can do with that |
| All times are GMT -4. The time now is 9:27 pm. | |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC