wildmidi: cleanups and fix seeking
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 4 Sep 2009 15:27:52 +0000 (17:27 +0200)
committerWim Taymans <wim@metal.(none)>
Fri, 4 Sep 2009 15:32:15 +0000 (17:32 +0200)
commitf874e30998683eed73eea65a657452293595469f
tree92aa96344caa237a8ec123802ac42ebe0566db0a
parente806e7aaeb8492ea48c75a0e73e10529cdb2d7aa
wildmidi: cleanups and fix seeking

Remove time_per_frame, it's too inaccurate.
Fix convert for -1 values.
Use scaling to convert samples to time.
Fix segment handling.
Fix seeking.
Fix buffer clipping (not yet enabled)
Protect the WildMidi library with the object lock to avoid races when changing
properties.
Fix offsets on output buffers, for raw audio the offset contains the sample
position not byte position.
Add better DISCONT handling.

Fixes #519001
ext/timidity/gstwildmidi.c
ext/timidity/gstwildmidi.h