Replace raw buffers with std containers (#1101)

Signed-off-by: Rosen Penev <[email protected]>
This commit is contained in:
Rosen Penev
2023-08-06 17:46:59 -05:00
committed by GitHub
parent 868f4eef3d
commit dcef356e3f
14 changed files with 444 additions and 438 deletions
+3 -2
View File
@@ -25,8 +25,9 @@
#include "mpcproperties.h"
#include "tstring.h"
#include "tdebug.h"
#include "tstring.h"
#include <array>
#include <bitset>
#include <cmath>
@@ -184,7 +185,7 @@ namespace
// This array looks weird, but the same as original MusePack code found at:
// https://www.musepack.net/index.php?pg=src
const unsigned short sftable [8] = { 44100, 48000, 37800, 32000, 0, 0, 0, 0 };
constexpr std::array sftable { 44100, 48000, 37800, 32000, 0, 0, 0, 0 };
} // namespace
void MPC::Properties::readSV8(File *file, offset_t streamLength)