~ubuntu-branches/debian/squeeze/nas/squeeze

« back to all changes in this revision

Viewing changes to server/dda/sun/ausun.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve McIntyre
  • Date: 2008-10-08 01:18:19 UTC
  • mfrom: (4.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081008011819-wmr4h2w0298k8t7z
Tags: 1.9.1-5
* Fix pending l10n issues. Debconf translations:
* Swedish. Closes: #491766 (thanks to brother@bsnet.se)
* Arabic. Closes: #500437 (thanks to Ossama Khayat)
* Basque. Closes: #500533 (thanks to Piarres Beobide)
* Brazilian Portuguese. Closes: #500973 (thanks to Felipe
  Augusto van de Wiel)
* Many thanks again to Christian Perrier for his i18n efforts,
  co-ordinating the above.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#ifndef _AUSUN_H_
26
26
#define _AUSUN_H_
27
27
 
28
 
#define VENDOR_STRING           ausunVendorString
29
 
#define VENDOR_RELEASE          1
 
28
#define VENDOR_STRING           ausunVendorString
 
29
#define VENDOR_RELEASE          1
30
30
 
31
31
#ifndef _AUSUN_C_
32
32
extern char *VENDOR_STRING;
36
36
 * NOTE: The native format endianess should match that of the machine
37
37
 * running the audio server.
38
38
 */
39
 
#define auNativeFormat          AuFormatLinearSigned16MSB
40
 
#define auNativeBytesPerSample  2
 
39
#define auNativeFormat          AuFormatLinearSigned16MSB
 
40
#define auNativeBytesPerSample  2
41
41
 
42
42
#include <signal.h>
43
43
 
44
44
typedef int AuBlock;
45
45
#if defined(SYSV) || defined(SVR4)
46
 
#define AuUnBlockAudio(_x)                                                    \
47
 
do                                                                            \
48
 
{                                                                             \
49
 
    if ((int) (_x) != (int) SIG_HOLD)                                         \
50
 
        (void) sigset(SIGPOLL, (void (*)(int))(_x));                          \
 
46
#define AuUnBlockAudio(_x)                                                    \
 
47
do                                                                            \
 
48
{                                                                             \
 
49
    if ((int) (_x) != (int) SIG_HOLD)                                         \
 
50
        (void) sigset(SIGPOLL, (void (*)(int))(_x));                          \
51
51
} while(0)
52
52
 
53
 
#define AuBlockAudio()          (int) sigset(SIGPOLL, SIG_HOLD)
 
53
#define AuBlockAudio()          (int) sigset(SIGPOLL, SIG_HOLD)
54
54
#else
55
 
#define AuUnBlockAudio(_x)      sigsetmask(_x)
56
 
#define AuBlockAudio()          sigblock(sigmask(SIGPOLL))
 
55
#define AuUnBlockAudio(_x)      sigsetmask(_x)
 
56
#define AuBlockAudio()          sigblock(sigmask(SIGPOLL))
57
57
#endif
58
 
#define AuProtectedMalloc(_s)   xalloc(_s)
59
 
#define AuProtectedFree(_p)     free(_p)
 
58
#define AuProtectedMalloc(_s)   xalloc(_s)
 
59
#define AuProtectedFree(_p)     free(_p)
60
60
 
61
61
#endif /* !_AUSUN_H_ */