shithub: libsamplerate

Download patch

ref: 01c5b69162ecf09e3b1dec114da18257983ce7aa
parent: ff2ba49545b6f1ea5b847ad2409e8b4e9952e8af
author: David Seifert <soap@gentoo.org>
date: Sat Jun 10 11:48:00 EDT 2017

Fix incomplete forward declaration of struct AUDIO_OUT

* See also:
  https://github.com/erikd/libsamplerate/issues/15

--- a/examples/audio_out.c
+++ b/examples/audio_out.c
@@ -43,7 +43,7 @@
 
 #define	ALSA_MAGIC		MAKE_MAGIC ('L', 'n', 'x', '-', 'A', 'L', 'S', 'A')
 
-typedef struct
+typedef struct AUDIO_OUT
 {	int magic ;
 	snd_pcm_t * dev ;
 	int channels ;
--- a/examples/audio_out.h
+++ b/examples/audio_out.h
@@ -6,7 +6,7 @@
 ** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
 */
 
-typedef	struct AUDIO_OUT_s AUDIO_OUT ;
+typedef	struct AUDIO_OUT AUDIO_OUT ;
 
 typedef int (*get_audio_callback_t) (void *callback_data, float *samples, int frames) ;