1
mirror of https://github.com/mpv-player/mpv synced 2024-11-07 01:47:00 +01:00

updated for libaf...

please someone verify this, i'm not sure it's ok, looks weird:
    alsa_format.voices = ao_data.channels*2;


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7660 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-10-07 19:56:26 +00:00
parent 24d0b8f5e1
commit 9e3911b77d

View File

@ -67,9 +67,9 @@ static int init(int rate_hz, int channels, int format, int flags)
}
ao_data.format = format;
ao_data.channels = channels - 1;
ao_data.channels = channels;
ao_data.samplerate = rate_hz;
ao_data.bps = ao_data.samplerate*(ao_data.channels+1);
ao_data.bps = ao_data.samplerate*ao_data.channels;
ao_data.outburst = OUTBURST;
ao_data.buffersize = 16384;
@ -232,7 +232,7 @@ static int init(int rate_hz, int channels, int format, int flags)
}
mp_msg(MSGT_AO, MSGL_INFO, "AUDIO: %d Hz/%d channels/%d bps/%d bytes buffer/%s\n",
ao_data.samplerate, ao_data.channels+1, ao_data.bps, ao_data.buffersize,
ao_data.samplerate, ao_data.channels, ao_data.bps, ao_data.buffersize,
snd_pcm_get_format_name(alsa_format.format));
return(1);
}