Skip to content

wave file module does not support 32bit float format #60729

Closed

Description

@seebk
mannequin
BPO 16525
Nosy @jcea, @mdickinson, @serhiy-storchaka, @jleedev
Files
  • wave_read_issue16525.patch
  • wave_issue16525_updated.patch
  • wave_issue16525_doc.patch: Documentation patch clearly defining the supported sample formats
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/serhiy-storchaka'
    closed_at = None
    created_at = <Date 2012-11-21.20:13:47.301>
    labels = ['extension-modules', 'type-feature', 'expert-IO']
    title = 'wave file module does not support 32bit float format'
    updated_at = <Date 2020-10-15.18:42:18.176>
    user = 'https://bugs.python.org/seebk'

    bugs.python.org fields:

    activity = <Date 2020-10-15.18:42:18.176>
    actor = 'jleedev'
    assignee = 'serhiy.storchaka'
    closed = False
    closed_date = None
    closer = None
    components = ['Extension Modules', 'IO']
    creation = <Date 2012-11-21.20:13:47.301>
    creator = 'seebk'
    dependencies = []
    files = ['29079', '29085', '34264']
    hgrepos = []
    issue_num = 16525
    keywords = ['patch']
    message_count = 14.0
    messages = ['176077', '176085', '176086', '176284', '176291', '176292', '176293', '176374', '176741', '180132', '182150', '182217', '182316', '212542']
    nosy_count = 6.0
    nosy_names = ['jcea', 'mark.dickinson', 'serhiy.storchaka', 'seebk', 'jleedev', 'harveyormston']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue16525'
    versions = ['Python 3.4']

    Linked PRs

    Activity

    1. harveyormston commented on Feb 18, 2013

      harveyormstonmannequin
      Mannequin

      Thanks Sebastian. That makes sense. I've tried the updated patch and it works just fine for me.

    2. seebk commented on Mar 2, 2014

      seebkmannequin
      MannequinAuthor

      After the last changes in the development version of python 3.4 the patch cannot be applied anymore. As the the other audio file readers and the wave module share a common API it may be not desireable to simply enhance the wave module with support for floating point data. In particular the underlying audiooop module is designed ro only work with integer data.

      Therefore, and taking into account that this patch and its predecessor has not been reviewed in the last 2 years, I will not take the time to modify the patch again.

      At least please consider to apply the documentation patch I have uploaded now. This will clearly state in the documentation what sample formats are supported by the wave module.

    3. transferred this issue fromon Apr 10, 2022
    4. lkoenig commented on Mar 13, 2023

      @lkoenig
      Contributor

      I am making a attempt at adding support for floating point wave with PR #102574 let me know what you think !

    5. added 2 commits that reference this issue on Mar 14, 2023
      f7bd78b
      4ee51f5
    6. added 3 commits that reference this issue on Feb 28, 2026
      a3ffa27
      9263225
      cd49a3b
    7. added 3 commits that reference this issue on Mar 13, 2026
    8. added a commit that references this issue on Mar 13, 2026
      bb8e258
    9. added 2 commits that reference this issue on Mar 18, 2026
    10. added 3 commits that reference this issue on Apr 25, 2026
    11. added
      stdlibStandard Library Python modules in the Lib/ directory
      and removed on Jul 3, 2026
    12. serhiy-storchaka commented on Jul 3, 2026

      @serhiy-storchaka
      Member

      Support for WAVE_FORMAT_IEEE_FLOAT was added in GH-145931.

    13. added 2 commits that reference this issue on Oct 21, 2026
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions