Skip to content

Commit

Permalink
Add all of the MIME types that are associated with WAV files (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkozma committed Oct 4, 2023
1 parent f5492d4 commit 50729b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The SDK has been tested on the following operating systems:
| `png` | `image/png` |
| `svg` | `image/svg+xml` |
| `tif`,`tiff` | `image/tiff` |
| `wav` | `audio/x-wav` |
| `wav` | `audio/wav` |
| `webp` | `image/webp` |

## Usage
Expand Down
5 changes: 4 additions & 1 deletion sdk/src/asset_handlers/riff_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ use crate::{
utils::xmp_inmemory_utils::{add_provenance, MIN_XMP},
};

static SUPPORTED_TYPES: [&str; 9] = [
static SUPPORTED_TYPES: [&str; 12] = [
"avi",
"wav",
"webp",
"image/webp",
"audio/wav",
"audio/wave",
"audio/x-wav",
"audio/vnd.wave",
"application/x-troff-msvideo",
"video/avi",
"video/msvideo",
Expand Down

0 comments on commit 50729b7

Please sign in to comment.