[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple IIgs music library



On 10 jan, 21:53, dagz <DagenBr...@gmail.com> wrote:
> I'm familiar with Tools 219 and 220 for playing songs on the IIgs.  Is there a way to use either of these, or another tool/library, to play a song and also fire one-time samples for things like sound effects?

   Why don't just use the Sound Tool Set ?

         _SoundStartUp
         ...


         PushWord        #%00000000_00000100
         _FFStopSound                        ; Stop previous song
(Generator 2)
         PushWord        #$0201            ;
Chanel=0,Generator=2,FreeForm Synthesizer(1)
         PushLong         #PS_Param
         _FFStartSound                       ; Play Song
         RTS

PS_Param           HEX   00000000    ; Wave Start
PS_WaveSize      HEX 0000             ; Waveform size (in Page)
PS_Frequency     HEX 0000             ; Frequency
PS_DOCAddress  HEX 0000            ; DOC Start Address
PS_DOCSize       HEX 0000             ; DOC Buffer Size
                           HEX   00000000   ; Pointer to Next Wave
param block
PS_DOCVolume   HEX FF00           ; DOC Volume = Max

    Olivier