~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.1.0/third_party/portaudio/src/os/unix/pa_unix_hostapis.c

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (1.1.11)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20140128182336-3xenud1kbnwmf3mz
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id: pa_unix_hostapis.c 1413 2009-05-24 17:00:36Z aknudsen $
 
3
 * Portable Audio I/O Library UNIX initialization table
 
4
 *
 
5
 * Based on the Open Source API proposed by Ross Bencina
 
6
 * Copyright (c) 1999-2002 Ross Bencina, Phil Burk
 
7
 *
 
8
 * Permission is hereby granted, free of charge, to any person obtaining
 
9
 * a copy of this software and associated documentation files
 
10
 * (the "Software"), to deal in the Software without restriction,
 
11
 * including without limitation the rights to use, copy, modify, merge,
 
12
 * publish, distribute, sublicense, and/or sell copies of the Software,
 
13
 * and to permit persons to whom the Software is furnished to do so,
 
14
 * subject to the following conditions:
 
15
 *
 
16
 * The above copyright notice and this permission notice shall be
 
17
 * included in all copies or substantial portions of the Software.
 
18
 *
 
19
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 
20
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
21
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 
22
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
 
23
 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 
24
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 
25
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
26
 */
 
27
 
 
28
/*
 
29
 * The text above constitutes the entire PortAudio license; however, 
 
30
 * the PortAudio community also makes the following non-binding requests:
 
31
 *
 
32
 * Any person wishing to distribute modifications to the Software is
 
33
 * requested to send the modifications to the original developer so that
 
34
 * they can be incorporated into the canonical version. It is also 
 
35
 * requested that these non-binding requests be included along with the 
 
36
 * license above.
 
37
 */
 
38
 
 
39
/** @file
 
40
 @ingroup unix_src
 
41
*/
 
42
 
 
43
#include "pa_hostapi.h"
 
44
 
 
45
PaError PaJack_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
 
46
PaError PaAlsa_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
 
47
PaError PaOSS_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
 
48
/* Added for IRIX, Pieter, oct 2, 2003: */
 
49
PaError PaSGI_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
 
50
/* Linux AudioScience HPI */
 
51
PaError PaAsiHpi_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
 
52
PaError PaMacCore_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
 
53
PaError PaSkeleton_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
 
54
 
 
55
/** Note that on Linux, ALSA is placed before OSS so that the former is preferred over the latter.
 
56
 */
 
57
 
 
58
PaUtilHostApiInitializer *paHostApiInitializers[] =
 
59
    {
 
60
#ifdef __linux__
 
61
 
 
62
#ifdef PA_USE_ALSA
 
63
        PaAlsa_Initialize,
 
64
#endif
 
65
 
 
66
#ifdef PA_USE_OSS
 
67
        PaOSS_Initialize,
 
68
#endif
 
69
 
 
70
#else   /* __linux__ */
 
71
 
 
72
#ifdef PA_USE_OSS
 
73
        PaOSS_Initialize,
 
74
#endif
 
75
 
 
76
#ifdef PA_USE_ALSA
 
77
        PaAlsa_Initialize,
 
78
#endif
 
79
 
 
80
#endif  /* __linux__ */
 
81
 
 
82
#ifdef PA_USE_JACK
 
83
        PaJack_Initialize,
 
84
#endif
 
85
                    /* Added for IRIX, Pieter, oct 2, 2003: */
 
86
#ifdef PA_USE_SGI 
 
87
        PaSGI_Initialize,
 
88
#endif
 
89
 
 
90
#ifdef PA_USE_ASIHPI
 
91
        PaAsiHpi_Initialize,
 
92
#endif
 
93
 
 
94
#ifdef PA_USE_COREAUDIO
 
95
        PaMacCore_Initialize,
 
96
#endif
 
97
 
 
98
#ifdef PA_USE_SKELETON
 
99
        PaSkeleton_Initialize,
 
100
#endif
 
101
 
 
102
        0   /* NULL terminated array */
 
103
    };
 
104
 
 
105
int paDefaultHostApiIndex = 0;