[openbeosmediakit] Re: Question on new codec API

  • From: Marcus Overhagen <marcusoverhagen@xxxxxxxx>
  • To: openbeosmediakit@xxxxxxxxxxxxx
  • Date: Fri, 5 Dec 2003 12:33:28 +0100 (CET)

> Marcus,
> 
> The GetNextChunk(void *cookie,
>                               void **chunkBuffer, int32 *chunkSize,
>                               media_header *mediaHeader)
> 
> Method does not supply a streamnumber which makes it difficult to 
> determine which cookie I need to cast to.

The idea is that AllocateCookie gets called once for each stream, so
you can put everything needed for the stream (even it's number)
into the cookie, and common data into the Reader class itself.

> I think all the methods need to supply this parameter
> 
> FreeCookie, GetStreamInfo, Seek.

We could do that, but do we really need it?
What exactly are you trying to do?

Marcus






Other related posts: