diff EXAMPLES/playstream.c @ 7:ee50db043251

Cross-platform fixes.
author Eric Wing <ewing . public |-at-| gmail . com>
date Thu, 28 Oct 2010 02:33:05 -0700
parents 26aec5629f68
children b1e13d5688d1
line wrap: on
line diff
--- a/EXAMPLES/playstream.c	Thu Oct 28 02:32:46 2010 -0700
+++ b/EXAMPLES/playstream.c	Thu Oct 28 02:33:05 2010 -0700
@@ -1,5 +1,3 @@
-
-//#include "SDL.h"
 #include "ALmixer.h"
 #include <stdio.h>
 #include <stdlib.h>
@@ -36,6 +34,11 @@
 
 int main(int argc, char* argv[])
 {
+	ALint i;
+	ALboolean still_playing = AL_TRUE;
+
+	ALmixer_Data* audio_data[MAX_SOURCES];
+
 	if(argc < 1)
 	{
 		printf("Pass a sound file (or files) as a parameter\n");
@@ -44,10 +47,6 @@
 	{
 		printf("Maximum supported files is %d\n", MAX_SOURCES);
 	}
-	size_t i;
-	ALboolean still_playing = AL_TRUE;
-
-	ALmixer_Data* audio_data[MAX_SOURCES];
 	ALmixer_Init(ALMIXER_DEFAULT_FREQUENCY, ALMIXER_DEFAULT_NUM_SOURCES, ALMIXER_DEFAULT_REFRESH);
 	
 	for(i=1; i<argc; i++)