View Single Post
Baggers

JCF Member

Joined: Jan 2005

Posts: 558

Baggers is doing well so far

Feb 27, 2006, 10:32 AM
Baggers is offline
Reply With Quote
120gig...tempting.....and i may have it on disk round here...lemme check.

[EDIT]
Sorry, no such luck...I cannae find it. Nevermind...

...On the bright side is the fact that the sound system is finished ! YAY !
All that math paid off and it works wonderfully.
And for any coders of DarkBasicpro out there...it's totally free

Find it here !: http://forum.thegamecreators.com/?m=...=72901&b=1&p=0

Anyway off to post about it on the DBP forums.
Bye !



[EDIT]

WOOO !
Yeah good news for the sound system again. Sound culling is now in place !
This means if a sound is out of range it is stopped playing so your sound slots are free.
The clever bit is the way it gets round a potential problem of culling.

Imagine you have a sound that is 30 seconds long. You are within range at the start after 5 seconds leave range...so the sound is culled... seconds later you go back into range and the sound starts again, even though in real life the sound is still playing even if you are out of range to hear it.
The culling system fixes this by keeping track of the position your sound would have been at if it were still playing and makes sure that when you re-enter range the sound is within a few hundreds of a second's accuracy to where it would have been if it were never culled.

Still got one problem though and that is the method used to grab the sound length is very slow (1:1 actualy meaning it takes the same time to grab the speed as the sound would to play...which makes for very long loading times) Once this is fixed I will update the free source code and that will be available to all too.


[EDIT once again]
*sits back smuggly and adjusts tie*
Oh yeah...it's done !
I found out (which was tricky a it wasnt in the documentation) that I could put the sound into memory and read the Dword containing the Bytes per second of a sound file....I already knew te ammount of sound data in bytes the sound contained so one quick devision later gave me the length of the sound...and it's fast !

..and it's also perfect timing as it's lunch time now !
Ah what a great day !
__________________
Click the Sig to go to the Jazz3D fangames Site

Last edited by Baggers; Feb 28, 2006 at 01:31 AM.