A problem in DMO Audio Decoder(single sample per buffer)

Discussion in 'Windows Media Player' started by I*Scorpio, Feb 3, 2007.

  1. I*Scorpio

    I*Scorpio Guest

    I've finished a asf muxer using third-party codec, and then started to write
    Video/Audio DMO decoder for these ASF files. I succeeded in Video decoder,
    but met some problems in writing audio decoder.

    The internalProcessInput method provides input buffer containing valid data,
    and in internalGetInputStreamInfo function, I set *pFlag =
    As the result, the buffer provided by internalProcessInput method should
    only contain a single whole sample. However, I got a buffer contains several
    sample (For example, the sample size in my asf file is 96 Bytes, but the
    internalProcessInput method provides me 1408 Bytes valid data).
    If anybody knows why it happens, please reply!
    Best regards!
    I*Scorpio, Feb 3, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.