36
36
* NOTE: The native format endianess should match that of the machine
37
37
* running the audio server.
39
#define auNativeFormat AuFormatLinearSigned16MSB
40
#define auNativeBytesPerSample 2
39
#define auNativeFormat AuFormatLinearSigned16MSB
40
#define auNativeBytesPerSample 2
42
42
#include <signal.h>
44
44
typedef int AuBlock;
45
45
#if defined(SYSV) || defined(SVR4)
46
#define AuUnBlockAudio(_x) \
49
if ((int) (_x) != (int) SIG_HOLD) \
50
(void) sigset(SIGPOLL, (void (*)(int))(_x)); \
46
#define AuUnBlockAudio(_x) \
49
if ((int) (_x) != (int) SIG_HOLD) \
50
(void) sigset(SIGPOLL, (void (*)(int))(_x)); \
53
#define AuBlockAudio() (int) sigset(SIGPOLL, SIG_HOLD)
53
#define AuBlockAudio() (int) sigset(SIGPOLL, SIG_HOLD)
55
#define AuUnBlockAudio(_x) sigsetmask(_x)
56
#define AuBlockAudio() sigblock(sigmask(SIGPOLL))
55
#define AuUnBlockAudio(_x) sigsetmask(_x)
56
#define AuBlockAudio() sigblock(sigmask(SIGPOLL))
58
#define AuProtectedMalloc(_s) xalloc(_s)
59
#define AuProtectedFree(_p) free(_p)
58
#define AuProtectedMalloc(_s) xalloc(_s)
59
#define AuProtectedFree(_p) free(_p)
61
61
#endif /* !_AUSUN_H_ */