Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / AHI / Include / Asm / libraries / ahi_sub.i
blobefa6b1474810782aa182bd0c6bfc00a824f3f296
1 IFND LIBRARIES_AHISUB_I
2 LIBRARIES_AHISUB_I SET 1
4 **
5 ** $VER: ahi_sub.i 6.0 (02.02.2005)
6 ** :ts=8 (TAB SIZE: 8)
7 **
8 ** ahi/[driver].audio definitions
9 **
10 ** (C) Copyright 1994-2005 Martin Blom
11 ** All Rights Reserved.
15 *------------------------------------------------------------------------*
18 IFND EXEC_TYPES_I
19 INCLUDE 'exec/types.i'
20 ENDC
22 IFND UTILITY_TAGITEM_I
23 INCLUDE 'utility/tagitem.i'
24 ENDC
26 IFND DEVICES_AHI_I
27 INCLUDE 'devices/ahi.i'
28 ENDC
30 IFND LIBRARIES_IFFPARSE_I
31 INCLUDE 'libraries/iffparse.i'
32 ENDC
34 *------------------------------------------------------------------------*
36 *** STRUCTUES
38 ; AHIAudioCtrlDrv
39 STRUCTURE AHIAudioCtrlDrv,0
40 STRUCT ahiac_AudioCtrl,AHIAudioCtrl_SIZEOF
41 ULONG ahiac_Flags ; See below for definition
42 APTR ahiac_SoundFunc ; AHIA_SoundFunc (Hook)
43 APTR ahiac_PlayerFunc ; AHIA_PlayerFunc (Hook)
44 Fixed ahiac_PlayerFreq ; AHIA_PlayerFreq
45 Fixed ahiac_MinPlayerFreq ; AHIA_MinPlayerFreq
46 Fixed ahiac_MaxPlayerFreq ; AHIA_MaxPlayerFreq
47 ULONG ahiac_MixFreq ; AHIA_MixFreq
48 UWORD ahiac_Channels ; AHIA_Channels
49 UWORD ahiac_Sounds ; AHIA_Sounds
51 ULONG ahiac_DriverData ; Unused. Store whatever you want here.
53 APTR ahiac_MixerFunc ; Mixing routine Hook
54 APTR ahiac_SamplerFunc ; Sampler routine Hook
55 ULONG ahiac_Obsolete
56 ULONG ahiac_BuffSamples ; Samples to mix this pass.
57 ULONG ahiac_MinBuffSamples ; Min. samples to mix each pass.
58 ULONG ahiac_MaxBuffSamples ; Max. samples to mix each pass.
59 ULONG ahiac_BuffSize ; Buffer size ahiac_MixerFunc needs.
60 ULONG ahiac_BuffType ; Buffer format (V2)
61 FPTR ahiac_PreTimer ; Call before mixing (V4)
62 FPTR ahiac_PostTimer ; Call after mixing (V4)
63 ULONG ahiac_AntiClickSamples ; AntiClick samples (V6)
64 APTR ahiac_PreTimerFunc ; A Hook wrapper for ahiac_PreTimer (V6)
65 APTR ahiac_PostTimerFunc ; A Hook wrapper for ahiac_PostTimer (V6)
67 ; The rest is PRIVATE! Hands off! They may change any time.
68 ; [lots of private stuff]
69 LABEL AHIAudioCtrlDrv_SIZEOF ; Do not use!
71 *** TAGS
73 AHIDB_UserBase EQU AHI_TagBase+500 ; Use for driver specific tags
76 ***DEFS
78 ; AHIsub_AllocAudio() return flags
79 BITDEF AHIS,ERROR,0
80 BITDEF AHIS,MIXING,1
81 BITDEF AHIS,TIMING,2
82 BITDEF AHIS,KNOWSTEREO,3
83 BITDEF AHIS,KNOWHIFI,4
84 BITDEF AHIS,CANRECORD,5
85 BITDEF AHIS,CANPOSTPROCESS,6
86 BITDEF AHIS,KNOWMULTICHANNEL,7
88 ; AHIsub_Start() and AHIsub_Stop() flags
89 BITDEF AHIS,PLAY,0
90 BITDEF AHIS,RECORD,1
92 ; ahiac_Flags
93 BITDEF AHIAC,VOL,0
94 BITDEF AHIAC,PAN,1
95 BITDEF AHIAC,STEREO,2
96 BITDEF AHIAC,HIFI,3
97 BITDEF AHIAC,PINGPONG,4
98 BITDEF AHIAC,RECORD,5
99 BITDEF AHIAC,MULTTAB,6 ; Private!
100 BITDEF AHIAC,MULTICHANNEL,7
102 ; AHIsub_Set#? and AHIsub_(Un)LoadSound return code
103 AHIS_UNKNOWN EQU ~0
105 ; IFF chunk names for the audio mode file
106 ID_AHIM EQU 'AHIM' ; AHI Modes
107 ID_AUDN EQU 'AUDN' ; AUDio driver Name
108 ID_AUDD EQU 'AUDD' ; AUDio driver Data
109 ID_AUDM EQU 'AUDM' ; AUDio Mode
111 ENDC ; LIBRARIES_AHISUB_I