Dead Hackers Society
Other BBSes »
 
 

Silly Venture 2019
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: 200Hz SNDH-replay using TimerC
Posted by: evil May,27.2015-17:52 

Yeah I experienced the same with a couple of Vortex 2 tunes last year. The replay code is really really slow. I ended up YM-dumping it with Hatari, a path you're already at :)

The problem: Hatari YM-recording dumps the registers at VBL. If your .prg-replay program uses Timer C it will sometimes skip or double up a frame (VBL is really 50.05 Hz).

Solution: make your .prg-replay call the music from VBL.


But I suspect you have more serious replay problems than that, and a qualified guess would be that the buzzer sounds fuck up. Your YM-stream player have to check the stream data for YM register #13, if the data is $ff, you shouldn't update the register.

Here's my YM-player, it's not generic and very clever, but I do believe it takes care of the register stream properly as far as being careful on reg7 and checking reg13.

https://github.com/ggnkua/Atari_ST_Sources/blob/master/ASM/Dead%20Hackers%20Society/Demosystem/ST_Demosystem-v1.0/sys/ym.s


Hope it helps a bit.

--
Anders Eriksson
ae@dhs.nu








[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
200Hz SNDH-replay using TimerC Sdw May,21.2015-15:31
  Re: 200Hz SNDH-replay using TimerC gwEm/PHF May,21.2015-16:00
    Re: 200Hz SNDH-replay using TimerC Sdw May,21.2015-16:16
      Re: 200Hz SNDH-replay using TimerC evil May,21.2015-18:40
        Re: 200Hz SNDH-replay using TimerC Sdw May,27.2015-16:39
          Re: 200Hz SNDH-replay using TimerC evil May,27.2015-17:52
            Re: 200Hz SNDH-replay using TimerC Sdw May,27.2015-23:58
              Re: 200Hz SNDH-replay using TimerC gwEm/PHF May,28.2015-16:42
                Re: 200Hz SNDH-replay using TimerC evil May,28.2015-17:16
                  Re: 200Hz SNDH-replay using TimerC Splash/S1 May,29.2015-00:58
                    Re: 200Hz SNDH-replay using TimerC evil May,29.2015-11:56
                      Re: 200Hz SNDH-replay using TimerC gwEm/PHF May,29.2015-15:13
                        Re: 200Hz SNDH-replay using TimerC Splash/S1 May,31.2015-19:21
                  Re: 200Hz SNDH-replay using TimerC Sdw May,31.2015-21:49
                    Re: 200Hz SNDH-replay using TimerC insane Jun,07.2016-10:08
                      Re: 200Hz SNDH-replay using TimerC insane Jun,07.2016-10:29
                      Re: 200Hz SNDH-replay using TimerC Splash/Sector One Jun,30.2016-18:30


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2019 Dead Hackers Society Contact: Anders Eriksson