Jump to content
IGNORED

Commodore 64 Audio Question


Timepilot2084

Recommended Posts

Forgive me if I'm posting in the wrong area, I didn't see a Commodore 64 specific thread, but I'm using a stupid tablet and it's possible I overlooked it. I have a question regarding the use of digitized sound effect and speech on the C64. I'm pretty familiar with programming, and have even made several games using BASIC with ML subs, but I can't figure this one out. Why is it that some games can play digitized audio over two voice music without stopping all the on-screen action, but some stop all sprite movement and audio before playing the sample? For instance, Way of the Exploding Fist has no trouble playing the digitized samples during the action. Thanks for reading!

Link to comment
Share on other sites

For digitized playback to work you have to plug the samples very often. Like 4,000 times a second minimum. Decent playback will be 8,000 or more.

 

That's a fair chunk of CPU time and some games will stop all the action. Others use more advanced techniques like Timer interrupts which allow other processes to continue on, but there's still the CPU demand.

 

Earlier games that used it generally had delay loops, not timers - so everything stopped. Once programming tricks got developed a lot started using Timers. So long as the game can put up with that chunk of CPU time being lost and still maintain fluid motion then it's a feasible technique.

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...