tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / workbench / devs / AHI / Drivers / Alsa / alsa-bridge / alsa.h
blobb79896ce8d386b4e4c9e4bc465fce599106b9094
1 #ifndef AHI_Drivers_Alsa_bridge_alsa_h
2 #define AHI_Drivers_Alsa_bridge_alsa_h
4 /*
5 Copyright © 2015-2016, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #include <exec/types.h>
11 #define ALSA_XRUN (-32)
13 BOOL ALSA_Init();
14 VOID ALSA_Cleanup();
16 VOID ALSA_MixerInit(APTR * handle, APTR * elem, LONG * min, LONG * max);
17 VOID ALSA_MixerCleanup(APTR handle);
18 LONG ALSA_MixerGetVolume(APTR elem);
19 VOID ALSA_MixerSetVolume(APTR elem, LONG volume);
21 APTR ALSA_Open();
22 VOID ALSA_DropAndClose(APTR handle);
24 BOOL ALSA_SetHWParams(APTR handle, ULONG * rate);
26 LONG ALSA_Write(APTR handle, APTR buffer, ULONG size);
28 VOID ALSA_Prepare(APTR handle);
30 LONG ALSA_Avail(APTR handle);
32 #endif