Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Getting position of sound

Author
Message
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 2nd Mar 2003 12:40
Is there any way of getting the position of a sound (ie. at which point it is)?

I've tried using Memblocks and that's fine for making waveforms but I can't work out how to get the actually playing position.

I've managed to work out at what gap the sound has moved on every second, but with fluctuating frame rates and all it's hard to work out what to do next

I know DBP must know somehow otherwise there would be no sound coming out of the speakers! It's just a matter of finding out where I can get that info.

It's for making a visualisation.

My attempt (it's always a bit long):

Visit [url]www.lightning-systems.co.uk[/url]
You are the http://s15.sitemeter.com/meter.asp?site=s15dtsig[/img]th person to view this signature.
Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 2nd Mar 2003 15:00
Yeah I know what you mean - a VU meter style effect. I don't believe it can be done with native DBPro. With a few extended commands, yeah - but not as it stands at the moment.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 2nd Mar 2003 15:37
It's a shame. I know the interval in bits between each second, but it's translating that into per-frame intervals that's hard.

At the moment my calculations are just 2 seconds off, but it's better than nothing!

Visit [url]www.lightning-systems.co.uk[/url]
You are the th person to view this signature.

Login to post a reply

Server time is: 2026-07-21 17:21:20
Your offset time is: 2026-07-21 17:21:20