GFA Basic DMA music routines wanted

GFA Basic DMA music routines wanted

Post by Barry Sch » Sat, 02 May 1998 04:00:00



Hi all,

I was wondering who could help me get the TT/STE DMA music routines
for GFA Basic 3.6. A friend of mine need's them for a game he's
writing...

 
 
 

GFA Basic DMA music routines wanted

Post by Christian Ratsc » Sun, 03 May 1998 04:00:00


Hi Barry!

Quote:>I was wondering who could help me get the TT/STE DMA music routines
>for GFA Basic 3.6. A friend of mine need's them for a game he's
>writing...

The easiest way is to use the DMASOUND and DMACONTROL commands. But as
DMASOUND could crash in the compiled program better use:

PROCEDURE dmasound(st_adr%,end_adr%,rate|,mode|)
  '
  ' Erstellt am 30.03.1996 von Holger Herzog
  '
  ' Version 1.01
  '
  ' Diese Routine ersetzt den DMASOUND-Befehl von GFA-Basic, der
  ' im Compilat zu Bomben fhrt. Sie startet das Abspielen eines
  ' 8 Bit Mono- oder Stereosamples. Genauere Information s. DMASOUND-Doku.
  '
  ' Hinweis: Weder von GFA, noch in ergo!help dokumentiert ist das Feature,
  '          mit Bit 7 von rate| zwischen Stereo- und Monosamples zu w?hlen.
  '          (Bit 7 gesetzt = Mono) Bei Stereosamples mssen sich die Bytes
  '          fr linken und rechten K*abwechseln.
  '
  '     st_adr%         ==> Startadresse des Samples
  '     end_adr%        ==> Endadresse des Samples
  '     rate|           ==> Abspielrate (s. DMASOUND-Doku)
  '     mode|           ==> Abspielmodus (s. DMASOUND-Doku)
  '
  ' Version 1.0         30.03.1996 Holger Herzog
  ' Version 1.01        22.08.1996 Holger Herzog
  '                     Stereo-Modus dokumentiert
  '
  SDPOKE &HFF8902,BYTE{SUCC(V:st_adr%)}
  SDPOKE &HFF8904,BYTE{ADD(V:st_adr%,2)}
  SDPOKE &HFF8906,BYTE{ADD(V:st_adr%,3)}
  SDPOKE &HFF890E,BYTE{SUCC(V:end_adr%)}
  SDPOKE &HFF8910,BYTE{ADD(V:end_adr%,2)}
  SDPOKE &HFF8912,BYTE{ADD(V:end_adr%,3)}
  SDPOKE &HFF8920,rate|
  SDPOKE &HFF8900,mode|
  '
RETURN

--
Tsch?
Christian
--------------------------------------

www.atari-computer.de/ratsch/

 
 
 

1. GFA Basic DMA music routi

EC>I was wondering who could help me get the TT/STE DMA music routines
EC>for GFA Basic 3.6. A friend of mine need's them for a game he's
EC>writing...
It's in the manual, page 526 has the info on using the DMACONTROL
command.  That plus commands for accessing the Microwire.
Later...
---
  SLMR 2.1a  All wiyht.  Rho sritched mg kegtops awound?
--
|          Gated by the premier Fido Technology Networks gateway .
|          Providing USENET, Internet Email and FTP hub facilities.
|          See "http://www.ftn.org" for details.

2. Request for help - UK Y2K Bugbusters

3. GFA BASIC -> GFA BASIC for WINDOWS

4. Quantex

5. Error in Buffer allocation

6. GFA BASIC ST <--> GFA BASIC PC Windows

7. Denver Airport baggage handling system (was: Fun at new Denver Airport)

8. GFA Basic graphics routines

9. Speech routine in GFA-basic - 2 bombs

10. WANTED: Fun School 2 (under 6), STOS Basic, GFA Basic

11. DMA-Sound with GFA Basic

12. Samples in GFA-Basic w/o DMA-hardware?