Hello, Guest the thread was viewed298 times and contains 2 replies

last post from Peter Wade at the

Do I need to initialize sound?

  • I'm working on a game in Basic. At the start I use the Envelope command to setup a sound effect, use the Vol command to set the volume and then use Play to play the sound. But when I start the program I don't get any sound. If I exit from my program and run the menu program on one of the intro discs it plays it's tune, and if I quit back to Basic sound then works in my program. I've also found that if I keep running my program, sound sometimes starts working after a while and once it starts it keeps working.


    Is there any initialisation I should do to make sound work?

  • Some possibilities on my mind, try switching between the 6581 sid and the 8580 sid to see if it makes any difference.


    In the recent past, both had their own set of problems, but on the whole, I tend to recommend the 8580 over the 6581 for now.


    Despite that, I recall adding something like this onto the intro disk to work around problems even with the 8580.


    play:i$="p0t1o1sc":play i$,i$,i$,i$,i$,i$:rem workaround sid 8580 issue


    I think this workaround related to this github ticket:


    https://github.com/MEGA65/mega65-core/issues/631


    I think in more recent development cores, we had a dev improving sid performance and some of these problems might've gone away and the situation may have improved (I think it has, but my memory's a little foggy on it :-)).


    So you could try a new development core in one of your spare flash slots and see if it works better for you. Once you feel it works well for your needs you can flash it to slot 1 to replace the core your system boots up to.