[Mplayer-users] new audio code in CVS

Jacob Ilsø Christensen firelake at mail1.stofanet.dk
Thu May 10 10:24:20 CEST 2001


On Thu, 10 May 2001 05:56:43 Arpi wrote:
> Hi,
> 
> I've just commited the new audio code of mplayer.
> 
> Changes:
> - audio playback rewritten, using OSS specs (should be more standard)
> - does not use select(), but uses ioctl()'s
> (SNDCTL_DSP_GETOSPACE,GETODELAY)
>   => much precise timing!!! (if card&driver supports it...)
> - PTS correction is now in the demuxer (see ds_tell_pts())
> - input bitrate (bytes/sec) is calculated & stored in sh_audio_t struct
> - option '-alsa' no more used, it always uses usleep()
> 
> Now for most precise timing it summarizes all delays:
> - delay in demuxer buffers (handled by ds packets)
> - pts correction (ds_tell_pts())
> - compressed bytes in the a_in_buffer  (ACM/DShow)
> - uncompressed bytes in the a_buffer  (everything, except PCM+aLaw)
> - buffered bytes in the audio card's/DMA buffer. (ioctl GETODELAY)
> 
> I got <10ms error for most mpg, avi and asf files, it's very good.
> But VOB seems to be broken, at least it's about +-200ms :((( I'll fix it.
> 


For me it really improved things! Sound is much better and precise than
before. I do not hear those interruptions in the sound anymore. Really nice
:)

Keep up the good work,
Jacob Ilsø.


_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users



More information about the MPlayer-users mailing list