mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-02-08 10:18:02 +08:00
tests : add C test
This commit is contained in:
@@ -30,8 +30,8 @@ ggwave_Instance ggwave_init(const ggwave_Parameters parameters) {
|
||||
parameters.sampleRateIn,
|
||||
parameters.sampleRateOut,
|
||||
parameters.samplesPerFrame,
|
||||
GGWAVE_SAMPLE_FORMAT_F32,
|
||||
GGWAVE_SAMPLE_FORMAT_I16});
|
||||
parameters.sampleFormatIn,
|
||||
parameters.sampleFormatOut});
|
||||
|
||||
return curId++;
|
||||
}
|
||||
@@ -92,6 +92,7 @@ int ggwave_decode(
|
||||
std::copy(dataBuffer, dataBuffer + nCopied, (char *) data);
|
||||
|
||||
dataSize -= nCopied;
|
||||
dataBuffer += nCopied;
|
||||
|
||||
return nCopied;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user