• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * $Id: pa_memorybarrier.h 1240 2007-07-17 13:05:07Z bjornroche $
3 * Portable Audio I/O Library
4 * Memory barrier utilities
5 *
6 * Author: Bjorn Roche, XO Audio, LLC
7 *
8 * This program uses the PortAudio Portable Audio Library.
9 * For more information see: http://www.portaudio.com
10 * Copyright (c) 1999-2000 Ross Bencina and Phil Burk
11 *
12 * Permission is hereby granted, free of charge, to any person obtaining
13 * a copy of this software and associated documentation files
14 * (the "Software"), to deal in the Software without restriction,
15 * including without limitation the rights to use, copy, modify, merge,
16 * publish, distribute, sublicense, and/or sell copies of the Software,
17 * and to permit persons to whom the Software is furnished to do so,
18 * subject to the following conditions:
19 *
20 * The above copyright notice and this permission notice shall be
21 * included in all copies or substantial portions of the Software.
22 *
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
26 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
27 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
28 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 */
31
32/*
33 * The text above constitutes the entire PortAudio license; however,
34 * the PortAudio community also makes the following non-binding requests:
35 *
36 * Any person wishing to distribute modifications to the Software is
37 * requested to send the modifications to the original developer so that
38 * they can be incorporated into the canonical version. It is also
39 * requested that these non-binding requests be included along with the
40 * license above.
41 */
42
43/*
44 * $Id: pa_ringbuffer.c 1421 2009-11-18 16:09:05Z bjornroche $
45 * Portable Audio I/O Library
46 * Ring Buffer utility.
47 *
48 * Author: Phil Burk, http://www.softsynth.com
49 * modified for SMP safety on Mac OS X by Bjorn Roche
50 * modified for SMP safety on Linux by Leland Lucius
51 * also, allowed for const where possible
52 * modified for multiple-byte-sized data elements by Sven Fischer
53 *
54 * Note that this is safe only for a single-thread reader and a
55 * single-thread writer.
56 *
57 * This program uses the PortAudio Portable Audio Library.
58 * For more information see: http://www.portaudio.com
59 * Copyright (c) 1999-2000 Ross Bencina and Phil Burk
60 *
61 * Permission is hereby granted, free of charge, to any person obtaining
62 * a copy of this software and associated documentation files
63 * (the "Software"), to deal in the Software without restriction,
64 * including without limitation the rights to use, copy, modify, merge,
65 * publish, distribute, sublicense, and/or sell copies of the Software,
66 * and to permit persons to whom the Software is furnished to do so,
67 * subject to the following conditions:
68 *
69 * The above copyright notice and this permission notice shall be
70 * included in all copies or substantial portions of the Software.
71 *
72 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
73 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
74 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
75 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
76 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
77 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
78 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
79 */
80
81/*
82 * The text above constitutes the entire PortAudio license; however,
83 * the PortAudio community also makes the following non-binding requests:
84 *
85 * Any person wishing to distribute modifications to the Software is
86 * requested to send the modifications to the original developer so that
87 * they can be incorporated into the canonical version. It is also
88 * requested that these non-binding requests be included along with the
89 * license above.
90 */
91
92