copy nibble and revert pps init length

pps sample length may be in bytes
This commit is contained in:
Eknous-P 2025-07-24 13:49:38 +04:00
parent c9f3e95add
commit b6c49712d7
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ void DivEngine::loadPPS(SafeReader& reader, std::vector<DivSample*>& ret, String
s->rate = PPS_SAMPLE_RATE;
s->centerRate = PPS_SAMPLE_RATE;
s->depth = DIV_SAMPLE_DEPTH_4BIT;
s->init(headers[i].sample_length);
s->init(headers[i].sample_length*2); // bytes->samples
reader.seek((int)headers[i].start_pointer, SEEK_SET);