[PD-cvs] pd/src s_audio_asio.cpp,1.1.4.26.2.3,1.1.4.26.2.4

Thomas Grill xovo at users.sourceforge.net
Sat Oct 8 11:38:14 CEST 2005


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10860/src

Modified Files:
      Tag: devel_0_39
	s_audio_asio.cpp 
Log Message:
prevent debug version from bailing out on external syncing

Index: s_audio_asio.cpp
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/s_audio_asio.cpp,v
retrieving revision 1.1.4.26.2.3
retrieving revision 1.1.4.26.2.4
diff -C2 -d -r1.1.4.26.2.3 -r1.1.4.26.2.4
*** s_audio_asio.cpp	13 Jul 2005 22:49:39 -0000	1.1.4.26.2.3
--- s_audio_asio.cpp	8 Oct 2005 09:38:12 -0000	1.1.4.26.2.4
***************
*** 199,203 ****
  	asio_srate=(ASIOSampleRate)srate;
  #else
! 	sprintf(asio_srate,"%d",srate);
  #endif
  
--- 199,203 ----
  	asio_srate=(ASIOSampleRate)srate;
  #else
! 	sprintf(asio_srate,"%8d",srate);
  #endif
  
***************
*** 301,305 ****
  	
  	
! 	/* set sample rate */
  	if(ASIOCanSampleRate( asio_srate ) != ASE_OK)
  	{
--- 301,305 ----
  	
  	
! 	/* try to set sample rate */
  	if(ASIOCanSampleRate( asio_srate ) != ASE_OK)
  	{
***************
*** 308,312 ****
  		asio_srate = (ASIOSampleRate)44100.0;
  #else
! 		sprintf(&asio_srate,"%d",44100);
  #endif
  		srate=44100;
--- 308,312 ----
  		asio_srate = (ASIOSampleRate)44100.0;
  #else
! 		sprintf(&asio_srate,"%8d",44100);
  #endif
  		srate=44100;
***************
*** 314,320 ****
  
      status = ASIOSetSampleRate( asio_srate );
!     ASSERT(status == ASE_OK);
! 	post ("ASIOSetSampleRate\t %d", srate);
! 	
  	if(ASIOOutputReady() == ASE_OK)
  		asio_useoutputready = 1;
--- 314,324 ----
  
      status = ASIOSetSampleRate( asio_srate );
!     if(status != ASE_OK)
! #ifdef IEEE754_64FLOAT
! 	    post("Setting ASIO sample rate to %lg failed... is the device in slave sync mode?", (double)asio_srate);
! #else
! 	    post("Setting ASIO sample rate to %s failed... is the device in slave sync mode?", asio_srate);
! #endif
! 
  	if(ASIOOutputReady() == ASE_OK)
  		asio_useoutputready = 1;





More information about the Pd-cvs mailing list