mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-04 20:01:44 +02:00
First implementation of JackStream
This commit is contained in:
parent
a31238a2fb
commit
95c70f7994
6 changed files with 580 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue