Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move the SUN_* definitions to the top of the file.

This fixes building with alsa as the SUN_ULAW define is used
above the point at which it is declared in the alsa #if block.
  • Loading branch information...
commit 7b0c3042208009d7816533ba2835a9e87125078f 1 parent e4889a9
@rhdunn authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 aufile.c
View
14 aufile.c
@@ -26,6 +26,13 @@
#include "hplay.h"
#include "aufile.h"
+#define SUN_MAGIC 0x2e736e64 /* Really '.snd' */
+#define SUN_HDRSIZE 24 /* Size of minimal header */
+#define SUN_UNSPEC ((unsigned)(~0)) /* Unspecified data size */
+#define SUN_ULAW 1 /* u-law encoding */
+#define SUN_LIN_8 2 /* Linear 8 bits */
+#define SUN_LIN_16 3 /* Linear 16 bits */
+
#if defined(HAVE_SNDFILE_H) && defined(HAVE_LIBSNDFILE)
#define USE_SNDFILE 1
#include <sndfile.h>
@@ -46,13 +53,6 @@ static unsigned au_size = 0;
#endif
static const short endian = 0x1234;
-#define SUN_MAGIC 0x2e736e64 /* Really '.snd' */
-#define SUN_HDRSIZE 24 /* Size of minimal header */
-#define SUN_UNSPEC ((unsigned)(~0)) /* Unspecified data size */
-#define SUN_ULAW 1 /* u-law encoding */
-#define SUN_LIN_8 2 /* Linear 8 bits */
-#define SUN_LIN_16 3 /* Linear 16 bits */
-
file_write_p file_write = NULL;
file_term_p file_term = NULL;
Please sign in to comment.
Something went wrong with that request. Please try again.