Yussuf Özkan <yussuf.oz...@yandex.com> added the comment:

If you read a normal uncompressed AIFF with aifc, the samples are in big-endian 
order and need to be converted before they can be played on little-endian 
systems.

As all other compression schemes produce big-endian data, so should 'SOWT' 
encoded AIFF. Therefore, the bytes of each sample should be swapped on read and 
write.

See also: 
https://en.wikipedia.org/wiki/Audio_Interchange_File_Format#AIFF_on_Mac_OS_X

----------
components: +macOS
keywords: +patch
message_count: 4.0 -> 5.0
nosy: +ned.deily, ronaldoussoren, yussuf.ozkan
nosy_count: 3.0 -> 6.0
pull_requests: +23249
pull_request: https://github.com/python/cpython/pull/24449

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue30077>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to