From 8caf3c7338d02eb2963641118276d3c43bc0966c Mon Sep 17 00:00:00 2001 From: Bastian Bechtold Date: Thu, 2 Jun 2022 09:56:21 +0200 Subject: [PATCH] fixes MP3 support and M1 binaries No longer assumes *.MP3 files to have the *.MPEG file extension M1 binaries should correctly support MP3 this time (thank you @faroit!) --- _soundfile_data | 2 +- soundfile.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_soundfile_data b/_soundfile_data index 96b5506..2069e57 160000 --- a/_soundfile_data +++ b/_soundfile_data @@ -1 +1 @@ -Subproject commit 96b5506f9c81768dff3c6e74eaa59ad844229522 +Subproject commit 2069e571b693f3ffb8a3b2208276c9d477ea9849 diff --git a/soundfile.py b/soundfile.py index ee98de3..22f5bba 100644 --- a/soundfile.py +++ b/soundfile.py @@ -61,7 +61,7 @@ 'OGG': 0x200000, # Xiph OGG container 'MPC2K': 0x210000, # Akai MPC 2000 sampler 'RF64': 0x220000, # RF64 WAV file - 'MPEG': 0x230000, # MPEG-1/2 audio stream + 'MP3': 0x230000, # MPEG-1/2 audio stream } _subtypes = { @@ -135,7 +135,7 @@ 'OGG': 'VORBIS', 'MPC2K': 'PCM_16', 'RF64': 'PCM_16', - 'MPEG': 'MPEG_LAYER_III', + 'MP3': 'MPEG_LAYER_III', } _ffi_types = {