changeset 1070:e45a029db4c3

Better format info.
author atmosfear
date Sat, 09 Jun 2001 08:56:15 +0000
parents 844e266c4ea9
children 29b5ada1ec4c
files libao2/ao_sdl.c
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_sdl.c	Sat Jun 09 08:52:51 2001 +0000
+++ b/libao2/ao_sdl.c	Sat Jun 09 08:56:15 2001 +0000
@@ -150,7 +150,7 @@
 	/* Allocate ring-buffer memory */
 	for(i=0;i<NUM_BUFS;i++) buffer[i]=(unsigned char *) malloc(BUFFSIZE);
 
-	printf("SDL: Samplerate: %iHz Channels: %s Format %iBit\n", rate, (channels > 1) ? "Stereo" : "Mono", format);
+	printf("SDL: Samplerate: %iHz Channels: %s Format %s\n", rate, (channels > 1) ? "Stereo" : "Mono", audio_out_format_name(format));
 
 	if(sdl_adriver) {
 		setenv("SDL_AUDIODRIVER", sdl_adriver, 1);
@@ -230,7 +230,7 @@
 // stop playing and empty buffers (for seeking/pause)
 static void reset(){
 
-	//printf("SDL: reset called!\n");	
+	printf("SDL: reset called!\n");	
 
 	/* Reset ring-buffer state */
 	buf_read=0;
@@ -246,8 +246,12 @@
 // stop playing, keep buffers (for pause)
 static void audio_pause()
 {
-    // for now, just call reset();
-    reset();
+
+	printf("SDL: audio_pause called!\n");	
+	
+	// for now, just call reset();
+	//reset();
+
 }
 
 // resume playing, after audio_pause()