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.

Newcomers DBPro Corner / Starting audio at different points in the sound file

Author
Message
Nemesis_0_
20
Years of Service
User Offline
Joined: 26th Dec 2003
Location: Canada
Posted: 14th May 2008 00:04
Is there a way to play audio in DBP at a different point in the sound file than the start?

For instance, If I have an audio file that is 10 seconds long... let's say its a looped drum beat, but I want it to start playing at the 4 second mark of the audio file (Maybe skipping a few drum sounds) is that possible?
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 14th May 2008 00:28 Edited at: 14th May 2008 00:30
apparently your F1 key is broken, so i'll help:

Quote: "
PLAY SOUND

This command will play the specified Sound Number. An optional parameter allows you to specify a start
position in bytes that skips the initial part of the sample to be played.

Syntax

PLAY SOUND Sound Number
PLAY SOUND Sound Number,Start Position
"


Quote: "
LOOP SOUND

This command will play and loop the specified Sound Number continuously. Optional parameters allow you
to specify a start position, end position and initial position in bytes that a looping sound will use as it
plays.

Syntax

LOOP SOUND Sound Number
LOOP SOUND Sound Number,Start Position
LOOP SOUND Sound Number,Start Position,End Position
LOOP SOUND Sound Number,Start Position,End Position,Initial Position
"


Virtual Nomad
AMD XP 1800+ (~1.6 Ghz) / 1.5 GB RAM
ATI Radeon 8700LE 128 MB / Windows XP
Nemesis_0_
20
Years of Service
User Offline
Joined: 26th Dec 2003
Location: Canada
Posted: 14th May 2008 05:36
Lol not broken...

DBPRO isn't installed on my laptop yet, and I was working on a concept for a program. I didn't know whether or not to do it in VB, or DB and this capability is key that's all...
aarrowh
17
Years of Service
User Offline
Joined: 19th Oct 2007
Location:
Posted: 18th May 2008 05:07
Thanks for the post...this will help me..

SOMEDAY, I will have coding skillz... :p

Login to post a reply

Server time is: 2024-11-25 03:44:47
Your offset time is: 2024-11-25 03:44:47