Moderators: Mathias, Mug UK, moondog/.tSCc., [ProToS], Galvez, Moderator Team





Init:
if (Locksnd() != 1)
return (false);
SoundBuffer = Mxalloc(SOUND_BUFFER_SIZE, MX_STRAM); // Malloc in STRam !
if (!SoundBuffer)
{
Unlocksnd();
return (false);
}
Settracks(0,0);
Setmontracks(0);
Setmode(MODE_MONO);
Devconnect(DMAPLAY, DAC, CLK_25M, CLK_25K, NO_SHAKE); // 24585Hz
Setbuffer(PLAY, SoundBuffer, &SoundBuffer[SOUND_BUFFER_SIZE]);
Buffoper(PLAY_ENABLE | PLAY_REPEAT); // Play in Loop -> Ring Buffer
return (true);
DeInit:
Buffoper(0);
Mfree(SoundBuffer);
Unlocksnd();

simonsunnyboy wrote:"Software" trickery for the STE DMA sound? Does it intercept reads and writes to the associated hardware registers?







simonsunnyboy wrote:Thanks for the explanation! So compatible HW registers are there but the actual processing is done by the modern day IC part and there is no audio generating circuit otherwise designed into the system?

Users browsing this forum: CommonCrawl [Bot] and 0 guests