Skip to content

Replace deprecated audioop implementation of PCMVolumeTransformer.read #2177

@davidhozic

Description

@davidhozic

Summary

Replaces PCMVolumeTransformer.read implementation.

Closes #2176.

What is the feature request for?

The core library

The Problem

The built-in Python library audioop will be removed in Python 3.13 and it is deprecated since Python 3.11.
PCMVolumeTransformer.read() uses this module to do multiplications on bytes.

The Ideal Solution

Replace PCMVolumeTransformer.read() with a pure Python equivalent.

The Current Solution

PCMVolumeTransformer.read() uses the audioop.mul to multiply with volume.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions