> Hello.
>
> I tried doing the open two ports thingie in AL but I can't get the
> decoder to recognize the AC-3 stream. This is how I do it (simplified):
>
> 0. Set NA bit in the stream channel status word and setup output port
> to 24 byte sample width with 2 complement sample format.
> 1. Read AC-3 stream preamble+burst from file.
> 2. Pack 32 bit preamble and burst into a 32 bit integer array in
> 16 bit chunks.
Break the AC-3 stream into 24-bit chunks.
AES allows for 24 bits per sample, and that space is used no matter how
many bits you give the AL or dmSDK. If you use 16-bit samples, AL or
dmSDK will fill in the high-order 8 bits of each sample as the sign
extension (0xff for negative samples and 0x00 for positive sampes).
Michael
|