First implementation of JackStream

This commit is contained in:
Marcus Weseloh 2024-05-24 13:30:53 +02:00
parent a31238a2fb
commit 95c70f7994
6 changed files with 580 additions and 0 deletions

View file

@ -128,6 +128,12 @@ public:
// payloadSize = newSize;
// }
void setFrameCount(int frameCount) {
auto newSize = format.frameSize() * frameCount;
payload = (char*)realloc(payload, newSize);
payloadSize = newSize;
}
double durationMs() const
{
return static_cast<double>(getFrameCount()) / format.msRate();