summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authoratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-09 08:56:15 +0000
committeratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-09 08:56:15 +0000
commit3d3803b4fecdcd53f336d551f7b18486a811ae11 (patch)
tree0262ea8001ed5efb60e0feb4f53e9552034cf86c /libao2
parent4b6f69ec2a5cc51288e9ab8bbda5a5eec0b8be64 (diff)
downloadmpv-3d3803b4fecdcd53f336d551f7b18486a811ae11.tar.bz2
mpv-3d3803b4fecdcd53f336d551f7b18486a811ae11.tar.xz
Better format info.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1071 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r--libao2/ao_sdl.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/libao2/ao_sdl.c b/libao2/ao_sdl.c
index a1deb492d4..d0d854987a 100644
--- a/libao2/ao_sdl.c
+++ b/libao2/ao_sdl.c
@@ -150,7 +150,7 @@ static int init(int rate,int channels,int format,int flags){
/* 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 @@ static void uninit(){
// 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 @@ static void reset(){
// 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()