IFND LIBRARIES_AHISUB_I LIBRARIES_AHISUB_I SET 1 ** ** $VER: ahi_sub.i 1.6 (12.1.96) ** ** ahi/.audio definitions ** ** (C) Copyright 1994-1996 Martin Blom ** All Rights Reserved. ** ** (TAB SIZE: 8) ** *------------------------------------------------------------------------* IFND EXEC_TYPES_I INCLUDE 'exec/types.i' ENDC IFND EXEC_LIBRARIES_I INCLUDE 'exec/libraries.i' ENDC IFND UTILITY_TAGITEM_I INCLUDE 'utility/tagitem.i' ENDC IFND LIBRARIES_AHI_I INCLUDE 'libraries/ahi.i' ENDC *------------------------------------------------------------------------* *** STRUCTUES * AHIAudioCtrl STRUCTURE AHIAudioCtrl,0 ULONG ahiac_Flags * See below for definition APTR ahiac_SoundFunc * AHIA_SoundFunc (Hook) APTR ahiac_PlayerFunc * AHIA_PlayerFunc (Hook) ULONG ahiac_PlayerFreq * AHIA_PlayerFreq ULONG ahiac_MinPlayerFreq * AHIA_MinPlayerFreq ULONG ahiac_MaxPlayerFreq * AHIA_MaxPlayerFreq ULONG ahiac_MixFreq * AHIA_MixFreq UWORD ahiac_Channels * AHIA_Channels UWORD ahiac_Sounds * AHIA_Sounds ULONG ahiac_DriverData * Unused. Store whatever you want here. APTR ahiac_MixerFunc * Mixing routine Hook APTR ahiac_SamplerFunc * Sampler routine Hook ULONG ahiac_MaxRecordSamples * Max samples read between ahiac_SamplerFunc calls ULONG ahiac_BuffSamples * Samples to mix this pass. ULONG ahiac_MinBuffSamples * Min. samples to mix each pass. ULONG ahiac_MaxBuffSamples * Max. samples to mix each pass. ULONG ahiac_BuffSize * Buffer size ahiac_MixerFunc needs. * The rest is PRIVATE! Hands off! They may change any time. * [lots of private stuff] LABEL AHIAudioCtrl_SIZEOF * Do not use! *** TAGS AHIDB_UserBase EQU AHI_TagBase+500 * Use for driver specific tags ***DEFS * AHIsub_AllocAudio() return flags BITDEF AHIS,ERROR,0 BITDEF AHIS,MIXING,1 BITDEF AHIS,TIMING,2 BITDEF AHIS,KNOWSTEREO,3 BITDEF AHIS,KNOWHIFI,4 * AHIsub_Start() and AHIsub_Stop() flags BITDEF AHIS,PLAY,0 BITDEF AHIS,RECORD,1 * ahiac_Flags BITDEF AHIAC,VOL,0 BITDEF AHIAC,PAN,1 BITDEF AHIAC,STEREO,2 BITDEF AHIAC,HIFI,3 BITDEF AHIAC,PINGPONG,4 BITDEF AHIAC,RECORD,5 BITDEF AHIAC,MULTTAB,6 * Private! * AHIsub_Set#? and AHIsub_(Un)LoadSound return code AHIS_UNKNOWN EQU ~0 *** Library offsets LIBINIT LIBDEF _LVOAHIsub_AllocAudio LIBDEF _LVOAHIsub_FreeAudio LIBDEF _LVOAHIsub_Disable LIBDEF _LVOAHIsub_Enable LIBDEF _LVOAHIsub_Start LIBDEF _LVOAHIsub_Update LIBDEF _LVOAHIsub_Stop LIBDEF _LVOAHIsub_SetVol LIBDEF _LVOAHIsub_SetFreq LIBDEF _LVOAHIsub_SetSound LIBDEF _LVOAHIsub_SetEffect LIBDEF _LVOAHIsub_LoadSound LIBDEF _LVOAHIsub_UnLoadSound LIBDEF _LVOAHIsub_GetAttr ENDC ; LIBRARIES_AHI_I