[xiph-cvs] cvs commit: theora/examples player_example.c

Ralph Giles giles at xiph.org
Wed May 21 03:41:43 PDT 2003



giles       03/05/21 06:41:43

  Modified:    examples player_example.c
  Log:
  Support the various OSS header paths on *BSD. Patch from Jeremy C. Reed.
  
  Any more sin and me might as well use autoconf...

Revision  Changes    Path
1.14      +7 -1      theora/examples/player_example.c

Index: player_example.c
===================================================================
RCS file: /usr/local/cvsroot/theora/examples/player_example.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- player_example.c	19 May 2003 19:31:37 -0000	1.13
+++ player_example.c	21 May 2003 10:41:43 -0000	1.14
@@ -12,7 +12,7 @@
 
   function: example SDL player application; plays Ogg Theora files (with
             optional Vorbis audio second stream)
-  last mod: $Id: player_example.c,v 1.13 2003/05/19 19:31:37 giles Exp $
+  last mod: $Id: player_example.c,v 1.14 2003/05/21 10:41:43 giles Exp $
 
  ********************************************************************/
 
@@ -49,7 +49,13 @@
    give us any way to determine hardware timing, and since the
    hard/kernel buffer is going to be most of or > a second, that's
    just a little bit important */
+#if defined(__FreeBSD__)
+#include <machine/soundcard.h>
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#include <soundcard.h>
+#else
 #include <sys/soundcard.h>
+#endif
 #include <sys/ioctl.h>
 
 /* Helper; just grab some more compressed bitstream and sync it for

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list