mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 22:35:45 +00:00
drop support for 24 bit
This commit is contained in:
parent
3ef2b53fbe
commit
8c2e721b32
1 changed files with 2 additions and 12 deletions
14
wav.hh
14
wav.hh
|
|
@ -62,9 +62,9 @@ public:
|
|||
int ByteRate = readLE(4);
|
||||
int BlockAlign = readLE(2);
|
||||
bits_ = readLE(2);
|
||||
if (bits_ != 8 && bits_ != 16 && bits_ != 24 && bits_ != 32)
|
||||
if (bits_ != 8 && bits_ != 16 && bits_ != 32)
|
||||
return;
|
||||
if ((bits_ == 8 || bits_ == 16 || bits_ == 24) && AudioFormat != 1)
|
||||
if ((bits_ == 8 || bits_ == 16) && AudioFormat != 1)
|
||||
return;
|
||||
if (bits_ == 32 && AudioFormat != 3)
|
||||
return;
|
||||
|
|
@ -109,10 +109,6 @@ public:
|
|||
offset = 0;
|
||||
factor = 32767;
|
||||
break;
|
||||
case 24:
|
||||
offset = 0;
|
||||
factor = 8388607;
|
||||
break;
|
||||
case 32:
|
||||
offset = 0;
|
||||
factor = 1;
|
||||
|
|
@ -191,12 +187,6 @@ public:
|
|||
min = -32768;
|
||||
max = 32767;
|
||||
break;
|
||||
case 24:
|
||||
offset = 0;
|
||||
factor = 8388607;
|
||||
min = -8388608;
|
||||
max = 8388607;
|
||||
break;
|
||||
default:
|
||||
bits = 32;
|
||||
bytes = 4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue