[vorbis-dev] Quicktime Component
Segher Boessenkool
segher at chello.nl
Mon Jul 23 16:52:21 PDT 2001
> First, the importer part is blind, so it doesn't know the amount of samples
> that are in a file (it does support chained streams). It always
> over-calculates the length of the file, so there is emptiness at the end. No
> biggie, I'm trying to figure out what is the best way to calculate samples.
> I'm not sure if there is a clean way to implement VorbisFile, since it will
> calculate for me. Any ideas/code? I know how to do it with VorbisFile, but
> then I have to use different structures other than FSSpecs... Ewww!
I read from the dataref associated with my media, and calculate offsets and
ogg page size from the ogg page headers. That seems to work... although
QT doesn't seem to like a zero-length in time, non-zero-length in bytes
sample... I need some trickery for that (and similar cases).
>
> Currently it only works with 44k, stereo streams, but this is an easy fix,
> and kinda goes hand and hand with the above.
>
> Every time I open it in iTunes, it comes in saying 'song name (converted)'.
> I guess iTunes will need some changes too.
>
> Right now it comes in the form of an 'sdec' (sound decompressor) and an 'eat
> ' (movie import). So far, I didn't have a need for a media handler. Do you
> think I'll need one for additional functionality?
If you don't want to use something like the above-mentioned trickery, you
might need some, yes.
>
> Thanks for the TN, it will help!! I'm new to QT components =)
>
> The last thing which I haven't figured out yet, when used in OS X on my
> iBook, it skips at frequent yet consistent intervals. Almost sounds as
> though carbonizing it changed the physical bit-size of one of my variables
> (ie. One byte being perceived as 16 bits or something like this)...
No help here, sorry...
Segher
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis-dev
mailing list