Skip to content

NumPy DeprecationWarning #638

Description

@disketten

I'm getting a NumPy DeprecationWarning when I use the library in pytest

.../lib/python3.13/site-packages/sounddevice.py:2795: DeprecationWarning: Setting the shape on a NumPy array has been deprecated in NumPy 2.5.
  As an alternative, you can create a new view using np.reshape (with copy=False if needed).
    data.shape = -1, channels

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions