[PD-cvs] pd/portaudio/pa_unix_oss pa_unix_oss.c,1.8,1.9

Miller Puckette millerpuckette at users.sourceforge.net
Mon May 30 05:04:14 CEST 2005


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

Modified Files:
	pa_unix_oss.c 
Log Message:
Remembered to update all the edited files.  Should now be in sync... will
have to test it though.



Index: pa_unix_oss.c
===================================================================
RCS file: /cvsroot/pure-data/pd/portaudio/pa_unix_oss/pa_unix_oss.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** pa_unix_oss.c	18 May 2005 04:28:45 -0000	1.8
--- pa_unix_oss.c	30 May 2005 03:04:12 -0000	1.9
***************
*** 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