New submission from Ramon <ramonfrater...@gmail.com>:
All functions from the audioop module that work on stereo fragments, provide the same behaviour on multichannel (i.e. 5.1 channel LPCM) fragments. This is, however, not true for the tomono() function, that only makes sense when supplied with a 2-channel fragment. Therefore, I suggest adding an extra function to the module that demultiplexes any N-channel fragment and returns a given channel as mono fragment: audioop.demux(fragment, width, nChannels, channel) When, for example, applied to a 16 bit stereo fragment, audioop.demux(fragment, 2, 2, 0) would give the same result as audioop.tomono(fragment, 2, 1.0, 0). ---------- components: Extension Modules messages: 385443 nosy: Th4R4 priority: normal severity: normal status: open title: support for splitting multichannel audio fragments in audioop module type: enhancement versions: Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42991> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com