shithub: libsamplerate

Download patch

ref: 1ea32ae278e2176328e17233b29925021de9a6cf
parent: 8a650e62ae71e60f93db0e493967dcb119df77b8
author: Erik de Castro Lopo <erikd@mingus>
date: Tue Jul 25 23:33:59 EDT 2006

audio_out.c : Fix bug arising from last change.

--- a/examples/audio_out.c
+++ b/examples/audio_out.c
@@ -91,7 +91,7 @@
 		} ;
 
 	fmt = CPU_IS_BIG_ENDIAN ? AFMT_S16_BE : AFMT_S16_LE ;
-	if (ioctl (fd, SOUND_PCM_SETFMT, &fmt) != 0)
+	if (ioctl (linux_out->fd, SOUND_PCM_SETFMT, &fmt) != 0)
 	{	perror ("linux_open_dsp_device : set format ") ;
 	    exit (1) ;
   		} ;