Jump to content
IGNORED

Sound timing


Galaxian

Recommended Posts

Hello,

I'm aiming to do as little posting on this forum as possible due to the fact that I'm probably annoying you guys. (Totally understandable)

But I need to find out how to time my sounds. They seem to just go on forever and as you may know, the little bleeps in pong DO NOT go forever!

So, if someone who is good with sound could help me, it would be much appreciated.

 

Regards,

Henry

Link to comment
Share on other sites

I'm not "good", but I know enough to answer your question. :D

 

Make a variable a timer, set it to something like 12 or 20 (play around till it sounds right) and have it count down in you main game loop. When it hits 0 turn the volume to 0. Something like

 

Main_Loop

Counter=Counter-1

if Counter=0 then AUDV0=0

<game code here>

goto Main_Loop

 

Something like that.

  • Like 1
Link to comment
Share on other sites

I'm not "good", but I know enough to answer your question. :D

 

Make a variable a timer, set it to something like 12 or 20 (play around till it sounds right) and have it count down in you main game loop. When it hits 0 turn the volume to 0. Something like

 

Main_Loop

Counter=Counter-1

if Counter=0 then AUDV0=0

<game code here>

goto Main_Loop

 

Something like that.

WOW that's great! Trust me, in comparison to me you are VERY good with sound!

Just one problem, it doesn't get what counter means. Here is my source code:

Joy_pong.bas

Edited by Galaxian
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...