Jump to content
  • entries
    7
  • comments
    13
  • views
    14,191

Sound off, er, on!


Gemintronic

857 views

Turns out the REORGVARs mystery was related to a sound library I do not use. So, I don't THINK I need to worry about it anymore. back to having plenty of memory free!

 

My work today mainly consisted of playing with sound. In my previous posts I realised I can only play one digital sound at a time. I attempted to fix this by duplicating the sound effect routine and hoping it would magically allow simultaneous sounds. No go. So, I'm left with two options:

 

A. Come up with a complicated sound effect queue so each sound gets it's turn in line or

 

B. Add the other sound effects run time to the delay. So, the next sound effect will always start playing after the current one.

 

Plan B looks good but it ALWAYS cuts off the other sound effect initially. After the first interruption it always plays nice with the other repeating sound.

 

I also started to successfully import .MOD music files into my current music engine. This is a huge step as previously the MOD file would import but the instruments wouldn't play. And, yes, previously I did attempt to manually assign instruments with no good result.

 

So, stuff to think about includes sound queues and how to implement objects. You know: stuff that consists of sprites and x/y positions and collisions. I really need to put out another demo. I did not accomplish this weekend. Need to see if I can manage things better.

 

Until next time!

4 Comments


Recommended Comments

What do you mean by "digital sound"?

 

I'm using the z80 for 8-bit mono 16000hz waveforms. Basically taking samples of my sound effects and converting them into .wav files usable by the Genesis :) With the driver I'm using there's also a limit of 4 seconds. No mixing to speak of.

 

Having trouble making a proper sound queue. Got up at 5am and couldn't work it out. >:-(

Link to comment

How does the Z80 access the sound data? Is it just DMA'd in? If so just set aside 0.5K of RAM (approx 1/30th of a second) and mix the sounds yourself into that buffer.

Link to comment

How does the Z80 access the sound data? Is it just DMA'd in? If so just set aside 0.5K of RAM (approx 1/30th of a second) and mix the sounds yourself into that buffer.

 

Quite right. However, I know not how to hack the assembly for the z80 driver. I may have to find a way to steal FM channels from the music engine.

Link to comment
Guest
Add a comment...

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