[PD-cvs] pd/portaudio/pa_unix_oss pa_unix_oss.c,1.3,1.3.4.1

Tim Blechmann timblech at users.sourceforge.net
Tue Jun 28 18:30:38 CEST 2005


Update of /cvsroot/pure-data/pd/portaudio/pa_unix_oss
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8219/pa_unix_oss

Modified Files:
      Tag: devel_0_38
	pa_unix_oss.c 
Log Message:
updating to latest portaudio snapshot

Index: pa_unix_oss.c
===================================================================
RCS file: /cvsroot/pure-data/pd/portaudio/pa_unix_oss/pa_unix_oss.c,v
retrieving revision 1.3
retrieving revision 1.3.4.1
diff -C2 -d -r1.3 -r1.3.4.1
*** pa_unix_oss.c	6 Sep 2004 20:44:41 -0000	1.3
--- pa_unix_oss.c	28 Jun 2005 16:30:36 -0000	1.3.4.1
***************
*** 7,10 ****
--- 7,11 ----
   *   Phil Burk
   *   Dominic Mazzoni
+  *   Arve Knudsen
   *
   * Based on the Open Source API proposed by Ross Bencina
***************
*** 38,45 ****
  #include <string.h>
  #include <math.h>
[...2657 lines suppressed...]
      audio_buf_info info;
  
!     if( ioctl( stream->capture->fd, SNDCTL_DSP_GETISPACE, &info ) < 0 )
!         return paUnanticipatedHostError;
!     return info.fragments * stream->capture->hostFrames;
  }
  
  
+ /* TODO: Compute number of allocated bytes somewhere else, can we use ODELAY with capture */
  static signed long GetStreamWriteAvailable( PaStream* s )
  {
!     PaOssStream *stream = (PaOssStream*)s;
!     int delay = 0;
  
!     if( ioctl( stream->playback->fd, SNDCTL_DSP_GETODELAY, &delay ) < 0 )
!         return paUnanticipatedHostError;
!     
!     return (PaOssStreamComponent_BufferSize( stream->playback ) - delay) / PaOssStreamComponent_FrameSize( stream->playback );
  }
  





More information about the Pd-cvs mailing list