1 #ifndef AHI_Drivers_Alsa_bridge_alsa_h
2 #define AHI_Drivers_Alsa_bridge_alsa_h
5 Copyright © 2015-2016, The AROS Development Team. All rights reserved.
9 #include <exec/types.h>
11 #define ALSA_XRUN (-32)
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
);
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
);