If sansafix reads this,
Nobby spoke about gapless vorbis and FLAC but if you ever start to work on it please don’t forget LAME mp3 ( Gapless playback isn’t in the MPEG specifications concerning mp3 but ENC_DELAY and ENC_PADDING values in LAME headers make true gapless playback possible).