[PD-cvs] pd/src s_audio_alsa.c,1.5.4.5.2.2.2.3,1.5.4.5.2.2.2.4

Mathieu Bouchard matju at users.sourceforge.net
Thu Jun 28 07:37:55 CEST 2007


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

Modified Files:
      Tag: desiredata
	s_audio_alsa.c 
Log Message:
cleanup


Index: s_audio_alsa.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/s_audio_alsa.c,v
retrieving revision 1.5.4.5.2.2.2.3
retrieving revision 1.5.4.5.2.2.2.4
diff -C2 -d -r1.5.4.5.2.2.2.3 -r1.5.4.5.2.2.2.4
*** s_audio_alsa.c	28 Jun 2007 05:26:49 -0000	1.5.4.5.2.2.2.3
--- s_audio_alsa.c	28 Jun 2007 05:37:53 -0000	1.5.4.5.2.2.2.4
***************
*** 57,82 ****
  int alsa_noutdev;
  
! static void check_error(int err, const char *why)
! {
!     if (err < 0)
!         fprintf(stderr, "%s: %s\n", why, snd_strerror(err));
  }
  
! static int alsaio_canmmap(t_alsa_dev *dev)
! {
[...1005 lines suppressed...]
              snd_ctl_card_info(ctl, info);
              desc = snd_ctl_card_info_get_name(info);
              snd_ctl_card_info_free(info);
!         } else {
              fprintf(stderr, "ALSA card scan error\n");
              desc = "???";
***************
*** 808,813 ****
          ndev++;
      }
!     for (i = 0, j = 2*ndev; i < alsa_nnames; i++, j++)
!     {
          if (j >= maxndev)
              break;
--- 701,705 ----
          ndev++;
      }
!     for (i = 0, j = 2*ndev; i < alsa_nnames; i++, j++) {
          if (j >= maxndev)
              break;





More information about the Pd-cvs mailing list