Added info on audio format endianness
authorSam Lantinga <slouken@libsdl.org>
Mon, 01 May 2006 03:12:21 +0000
changeset 297c901cf1335d4
parent 296 c65198a40df7
child 298 ffe45f878dec
Added info on audio format endianness
playmus.c
     1.1 --- a/playmus.c	Mon May 01 01:16:14 2006 +0000
     1.2 +++ b/playmus.c	Mon May 01 03:12:21 2006 +0000
     1.3 @@ -168,9 +168,10 @@
     1.4  		return(2);
     1.5  	} else {
     1.6  		Mix_QuerySpec(&audio_rate, &audio_format, &audio_channels);
     1.7 -		printf("Opened audio at %d Hz %d bit %s, %d bytes audio buffer\n", audio_rate,
     1.8 +		printf("Opened audio at %d Hz %d bit %s (%s), %d bytes audio buffer\n", audio_rate,
     1.9  			(audio_format&0xFF),
    1.10  			(audio_channels > 2) ? "surround" : (audio_channels > 1) ? "stereo" : "mono", 
    1.11 +			(audio_format&0x1000) ? "BE" : "LE",
    1.12  			audio_buffers );
    1.13  	}
    1.14  	audio_open = 1;