Ignore:
Timestamp:
Oct 13, 2006 5:57:42 PM (18 years ago)
Author:
bennylp
Message:

Updated PortAudio? to latest version for Mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/portaudio/ringbuffer.h

    r339 r770  
    1212 * 
    1313 * Author: Phil Burk, http://www.softsynth.com 
     14 * modified for SMP safety on OS X by Bjorn Roche. 
     15 * also allowed for const where possible. 
     16 * Note that this is safe only for a single-thread reader 
     17 * and a single-thread writer. 
    1418 * 
    1519 * This program is distributed with the PortAudio Portable Audio Library. 
    16  * For more information see: http://www.audiomulch.com/portaudio/ 
     20 * For more information see: http://www.portaudio.com 
    1721 * Copyright (c) 1999-2000 Ross Bencina and Phil Burk 
    1822 * 
     
    2832 * included in all copies or substantial portions of the Software. 
    2933 * 
    30  * Any person wishing to distribute modifications to the Software is 
    31  * requested to send the modifications to the original developer so that 
    32  * they can be incorporated into the canonical version. 
    33  * 
    3434 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
    3535 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
     
    3939 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
    4040 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
     41 */ 
     42 
     43/* 
     44 * The text above constitutes the entire PortAudio license; however,  
     45 * the PortAudio community also makes the following non-binding requests: 
    4146 * 
     47 * Any person wishing to distribute modifications to the Software is 
     48 * requested to send the modifications to the original developer so that 
     49 * they can be incorporated into the canonical version. It is also  
     50 * requested that these non-binding requests be included along with the  
     51 * license above. 
    4252 */ 
     53 
     54/** 
     55 @file 
     56 @ingroup hostapi_src 
     57*/ 
     58 
    4359#include <stdio.h> 
    4460#include <stdlib.h> 
     
    5470    long   bigMask;    /* Used for wrapping indices with extra bit to distinguish full/empty. */ 
    5571    long   smallMask;  /* Used for fitting indices to buffer. */ 
    56     char *buffer; 
     72    char * buffer; 
    5773} 
    5874RingBuffer; 
     
    7187long RingBuffer_GetReadAvailable( RingBuffer *rbuf ); 
    7288/* Return bytes written. */ 
    73 long RingBuffer_Write( RingBuffer *rbuf, void *data, long numBytes ); 
     89long RingBuffer_Write( RingBuffer *rbuf, const void *data, long numBytes ); 
    7490/* Return bytes read. */ 
    7591long RingBuffer_Read( RingBuffer *rbuf, void *data, long numBytes ); 
Note: See TracChangeset for help on using the changeset viewer.