Skip to content
Snippets Groups Projects
Commit a96eb6de authored by Boris P. Korzun's avatar Boris P. Korzun Committed by George Joseph
Browse files

format_wav: Support of MIME-type for wav16

Provided a support of a MIME-type for wav16. Added new MIME-type
for classic wav.

ASTERISK-29275 #close

Change-Id: I749bda287ba1ab20c1e0af5e4c0153817d47873b
parent 1f77c33c
No related branches found
No related tags found
3 merge requests!138Merge branch asterisk-20.3.0 into devel properly,!123Merge asterisk '20.3.0' into devel,!118Draft: manager: AOC-S support for AOCMessage
......@@ -517,6 +517,7 @@ static off_t wav_tell(struct ast_filestream *fs)
static struct ast_format_def wav16_f = {
.name = "wav16",
.exts = "wav16",
.mime_types = "audio/x-wav;codec=pcm;bit=16;rate=16000",
.open = wav_open,
.rewrite = wav_rewrite,
.write = wav_write,
......@@ -532,7 +533,7 @@ static struct ast_format_def wav16_f = {
static struct ast_format_def wav_f = {
.name = "wav",
.exts = "wav",
.mime_types = "audio/wav|audio/x-wav",
.mime_types = "audio/wav|audio/x-wav|audio/x-wav;codec=pcm;bit=16;rate=8000",
.open = wav_open,
.rewrite = wav_rewrite,
.write = wav_write,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment