5 #include "DriverData.h"
7 #include "alsa-bridge/alsa.h"
9 /******************************************************************************
10 ** Custom driver init *********************************************************
11 ******************************************************************************/
14 DriverInit( struct DriverBase
* AHIsubBase
)
16 struct AlsaBase
* AlsaBase
= (struct AlsaBase
*) AHIsubBase
;
18 AlsaBase
->dosbase
= (struct DosLibrary
*)OpenLibrary( DOSNAME
, 37 );
20 if( AlsaBase
->dosbase
== NULL
)
22 Req( "Unable to open 'dos.library' version 37.\n" );
33 /******************************************************************************
34 ** Custom driver clean-up *****************************************************
35 ******************************************************************************/
38 DriverCleanup( struct DriverBase
* AHIsubBase
)
40 struct AlsaBase
* AlsaBase
= (struct AlsaBase
*) AHIsubBase
;
44 CloseLibrary( (struct Library
*) DOSBase
);