Mercurial > mplayer.hg
changeset 1079:1e0da351feaa
using audio_out_format_name
author | al3x |
---|---|
date | Sat, 09 Jun 2001 18:02:06 +0000 |
parents | 874ba7049c1a |
children | 36b883428aeb |
files | libao2/ao_oss.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libao2/ao_oss.c Sat Jun 09 17:53:54 2001 +0000 +++ b/libao2/ao_oss.c Sat Jun 09 18:02:06 2001 +0000 @@ -53,7 +53,8 @@ // return: 1=success 0=fail static int init(int rate,int channels,int format,int flags){ - printf("ao2: %d Hz %d chans 0x%X\n",rate,channels,format); + printf("ao2: %d Hz %d chans %s\n",rate,channels, + audio_out_format_name(format)); audio_fd=open(dsp, O_WRONLY); if(audio_fd<0){ @@ -63,7 +64,8 @@ ao_format=format; ioctl (audio_fd, SNDCTL_DSP_SETFMT, &ao_format); - printf("audio_setup: sample format: 0x%X (requested: 0x%X)\n",ao_format,format); + printf("audio_setup: sample format: %s (requested: %s)\n", + audio_out_format_name(ao_format), audio_out_format_name(format)); ao_channels=channels-1; ioctl (audio_fd, SNDCTL_DSP_STEREO, &ao_channels);