[MPlayer-cygwin] [PATCH] [NOSPAM] - Ac3 passthrough ao_win32

Sascha Sommer saschasommer at freenet.de
Thu Jun 17 18:50:46 CEST 2004


*/
> +    wformat.nSamplesPerSec  = rate;
> +    wformat.nAvgBytesPerSec = wformat.nSamplesPerSec *
wformat.nBlockAlign;

Bad as wformat.nBlockAlign  gets defined after that.

> +
> +    /* Ac3 pass-through */
> +    if (format == AFMT_AC3)
> +    {
> +        wformat.wFormatTag = WAVE_FORMAT_DOLBY_AC3_SPDIF;
> +        wformat.nChannels = 2;

shouldn't that be wformat.nChannels=channels;?

> +        wformat.wBitsPerSample =  16;

wformat.wBitsPerSample = audio_out_format_bits(format);
Should give the same value, does it?
Otherwise the patch looks ok, as far as I can tell from the diff.

Sascha




More information about the MPlayer-cygwin mailing list