projects/aports·blob master · refs

46 lines · 1.6 KiB

1Patch-Source: https://salsa.debian.org/debian/shntool/-/commit/57efcd7b34c2107dd785c11d79dfcd4520b2bc41
2--
3Origin: https://github.com/max619/shntool/commit/cfd06e4ed
4From cfd06e4edecdca2013e0fe04db135fd110a68203 Mon Sep 17 00:00:00 2001
5From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=91=D0=B0=D0=B3?=
6 =?UTF-8?q?=D1=80=D1=8F=D0=BD=D1=86=D0=B5=D0=B2?= <[email protected]>
7Date: Mon, 11 Nov 2019 00:53:06 +0300
8Subject: [PATCH] Added WAVE_FORMAT_EXTENSIBLE with value 0xfffe and supressed
9 error on wav header parsing with that format
10
11--- a/include/wave.h
12+++ b/include/wave.h
13@@ -58,8 +58,9 @@
14 #define WAVE_FORMAT_MPEG (0x0050)
15 #define WAVE_FORMAT_MPEGLAYER3 (0x0055)
16 #define WAVE_FORMAT_G726_ADPCM (0x0064)
17 #define WAVE_FORMAT_G722_ADPCM (0x0065)
18+#define WAVE_FORMAT_EXTENSIBLE (0xfffe)
19
20 #define CD_BLOCK_SIZE (2352)
21 #define CD_BLOCKS_PER_SEC (75)
22 #define CD_BLOCK_ALIGN (4)
23--- a/src/core_wave.c
24+++ b/src/core_wave.c
25@@ -166,8 +166,9 @@
26 return FALSE;
27 }
28
29 switch (info->wave_format) {
30+ case WAVE_FORMAT_EXTENSIBLE:
31 case WAVE_FORMAT_PCM:
32 break;
33 default:
34 st_warning("unsupported format 0x%04x (%s) while processing file: [%s]",
35@@ -510,9 +511,11 @@
36 return "MPEG Layer 3";
37 case WAVE_FORMAT_G726_ADPCM:
38 return "G.726 ADPCM";
39 case WAVE_FORMAT_G722_ADPCM:
40- return "G.722 ADPCM";
41+ return "G.722 ADPCM";
42+ case WAVE_FORMAT_EXTENSIBLE:
43+ return "WAVE Extensible format";
44 }
45 return "Unknown";
46 }