[MPlayer-dev-eng] [PATCH] Proof of concept extrasurround plugin
Kis Gergely
kisg at lme.linux.hu
Sat Apr 6 16:22:41 CEST 2002
On Fri, Apr 05, 2002 at 10:43:18AM +0200, Kis Gergely wrote:
> On Fri, Apr 05, 2002 at 03:58:00PM +0800, Anders Johansson wrote:
> > Hi,
> >
> > Had a quick look at the problem try changing the last line in
> > get_space() in ao_plugin to :
> >
> > return (int)(sz+0.5);
> >
> It works for me. I tested it with and without the surround plugin.
> I tried to setup AFMT_U8 with a mono stream and it worked too.
>
> I think, if Arpi approves it, you could commit, and see what other users
> think. :-)
OK, I found some strange situation, where this solution causes a problem.
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags: 32/192 (12288 bytes/frag) free: 393216
pl_surround: We can produce: audio_plugin_data.len = 61440
pl_surround: This means pl_surround.databuf_len = 5120
pl_surround: We can receive: audio_plugin_data.len = 20480
Video: no video!!!
Start playing...
pl_surround: play 20213 bytes, 5053 samples
^^^^^
Here the correct number would be 20212.
pl_surround: play 20480 bytes, 5120 samples
pl_surround: play 20480 bytes, 5120 samples
And nothing can be heard but noise...
The bug is really strange, and is only noticable, when using playlists, and
waiting the end of the previous file. I mean you don't hit on ENTER to jump
to the next file. If you do, the bug doesn't come up.
I will try to do some further investigation, and report.
Bye,
kisg
More information about the MPlayer-dev-eng
mailing list