Please sign in to comment.
[AE] added: perform byteswap in raw mode if sink requires it
The sink may need raw audio data either in S16_LE or S16_BE format. Currently the code assumes that the sink takes S16_NE. However, this may not be the case, and especially on big-endian systems the sink may need S16_LE instead (if the audio hardware takes that instead of S16_BE). Therefore, perform a late byteswap if needed. It would be preferred to take this into account in the IEC-61937 packer already, so that we wouldn't consume CPU power byteswapping padding (which there can be a lot of) or byteswap twice. However, the IEC-61937 packer can't currently get that information from the engine/sink.
- Loading branch information...
Showing with 53 additions and 7 deletions.