Forums Register Login

Audio threading

+Pie Number of slices to send: Send
So, I hope the title isn't misleading, but I'm curious as to how I would go about syncing up some behavior in my game to a certain part of my music. So far the only way I can think of would be to start a thread at the same time as the music that sleeps for 1 second, and then returns the seconds. then, at a certain number of seconds in, the game starts to do whatever. Im curious if theres any other way to do this?
+Pie Number of slices to send: Send
You could create a timer and immediately schedule all the happenings, with the first one starting the music.
+Pie Number of slices to send: Send
 

Stephan van Hulst wrote:You could create a timer and immediately schedule all the happenings, with the first one starting the music.


Im sorry, im very new to this, so im not quite sure what you mean.
+Pie Number of slices to send: Send
Well, if you give us a better idea of what you want to do, maybe we can give more specific advice.
I claim this furniture in the name of The Ottoman Empire! You can keep this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 780 times.
Similar Threads
runs perfectly only from my java\bin dir else errors...
Updating the GUI from 'other' objects - is there a design pattern for this ?
how can I get my game to pause in between rounds?
Awkward question (sorry)
Sounds
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 20:54:34.