Mercurial > mplayer.hg
changeset 7660:7ff053498bf2
fill ao_data correctly
author | arpi |
---|---|
date | Mon, 07 Oct 2002 20:01:28 +0000 |
parents | b10df387019c |
children | 90118ab3c95c |
files | libao2/ao_sdl.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libao2/ao_sdl.c Mon Oct 07 19:56:26 2002 +0000 +++ b/libao2/ao_sdl.c Mon Oct 07 20:01:28 2002 +0000 @@ -160,6 +160,10 @@ printf("SDL: using %s audio driver\n", ao_subdevice); } + ao_data.channels=channels; + ao_data.samplerate=rate; + ao_data.format=format; + ao_data.bps=channels*rate; if(format != AFMT_U8 && format != AFMT_S8) ao_data.bps*=2;