Mercurial > almixer_isolated
diff EXAMPLES/playsound.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 | eca6f008fad0 |
line wrap: on
line diff
--- a/EXAMPLES/playsound.c Thu Oct 28 02:32:46 2010 -0700 +++ b/EXAMPLES/playsound.c Thu Oct 28 02:33:05 2010 -0700 @@ -33,6 +33,10 @@ 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"); @@ -41,10 +45,7 @@ { 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(22050, 0, 0); for(i=1; i<argc; i++)