[Flac-dev] Flac and OggFlac

Erik de Castro Lopo
2005-10-03T12:43:50Z

HI all,

I have already added FLAC support to libsndfile and I am now
working on adding support for OggFLAC. I have a couple of
question about things that seem radically different between
regular FLAC and OggFLAC.

  1) FLAC has a function:

        FLAC__seekable_stream_decoder_get_decode_position

      but there seems to be no corresponding function:

        OggFLAC__seekable_stream_decoder_get_decode_position

      Why is that?

  2) I have registered a metadata callback function with
     OggFLAC__seekable_stream_decoder_set_metadata_callback and
     I'm looking at the metadata struct being passed back. When
	 using regular FLAC the field:

        metadata->data.stream_info.total_samples

     is set correctly, but with OggFLAC it seems to always be
	 zero. Why?

Can anyone shed any light?

Cheers,
Erik
--
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"    Baldie is such a wonderful villain
The Linux/OSS community could not possibly ask for a better villain than
our man Baldie. He is absolutely perfect for the part. Just look at his
creds: 1) Physically repulsive; 2) Morally bankrupt; 3) Megalomaniacal;
4) Possessed of a truly nasty, abusive disposition; 5) Prone to Hitlerian
ranting; 6) Stalinesque paranoia... The list just goes on and on. The man
has the gift of true despicability, no doubt about it. If it weren't for
Baldie we'd be stuck with Bilgatus' merely vacuuous and creepy persona
for an anthropomorphization of the Evil Empire -- tepid at best."
  -- Matthew Alton in LinuxToday.com on Steve Balmer