breaking the limit, part 2

all dispatches adapted to 32768 samples.
sample limit unlocked.
testing is required.
This commit is contained in:
tildearrow 2025-07-27 20:16:59 -05:00
parent a4da787c1b
commit 387d9e0654
47 changed files with 430 additions and 168 deletions

View file

@ -27,7 +27,7 @@
std::vector<DivSample*> DivEngine::sampleFromFile(const char* path) {
std::vector<DivSample*> ret;
if (song.sample.size()>=256) {
if (song.sample.size()>=32768) {
lastError="too many samples!";
return ret;
}
@ -432,7 +432,7 @@ std::vector<DivSample*> DivEngine::sampleFromFile(const char* path) {
}
DivSample* DivEngine::sampleFromFileRaw(const char* path, DivSampleDepth depth, int channels, bool bigEndian, bool unsign, bool swapNibbles, int rate) {
if (song.sample.size()>=256) {
if (song.sample.size()>=32768) {
lastError="too many samples!";
return NULL;
}