[New-bugs-announce] [issue42991] support for splitting multichannel audio fragments in audioop module

Ramon report at bugs.python.org
Thu Jan 21 14:43:34 EST 2021


New submission from Ramon <ramonfraterman at 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 <report at bugs.python.org>
<https://bugs.python.org/issue42991>
_______________________________________


More information about the New-bugs-announce mailing list