Skip to content

Commit

Permalink
fixes MP3 support and M1 binaries
Browse files Browse the repository at this point in the history
No longer assumes *.MP3 files to have the *.MPEG file extension
M1 binaries should correctly support MP3 this time (thank you @faroit!)
  • Loading branch information
Bastian Bechtold authored and btd committed Jun 2, 2022
1 parent c8b2616 commit 8caf3c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _soundfile_data
4 changes: 2 additions & 2 deletions soundfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -135,7 +135,7 @@
'OGG': 'VORBIS',
'MPC2K': 'PCM_16',
'RF64': 'PCM_16',
'MPEG': 'MPEG_LAYER_III',
'MP3': 'MPEG_LAYER_III',
}

_ffi_types = {
Expand Down

0 comments on commit 8caf3c7

Please sign in to comment.