mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-20 12:36:17 +02:00
chonos stuff
git-svn-id: svn://elaine/murooma/trunk@297 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
6354d55f78
commit
fe79a78efe
4 changed files with 32 additions and 68 deletions
|
@ -22,32 +22,6 @@ PcmChunk::~PcmChunk()
|
|||
}
|
||||
|
||||
|
||||
bool PcmChunk::isEndOfChunk() const
|
||||
{
|
||||
return idx >= getFrameCount();
|
||||
}
|
||||
|
||||
|
||||
double PcmChunk::getFrameCount() const
|
||||
{
|
||||
return (payloadSize / format.frameSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
double PcmChunk::getDuration() const
|
||||
{
|
||||
return getFrameCount() / format.msRate();
|
||||
}
|
||||
|
||||
|
||||
|
||||
double PcmChunk::getTimeLeft() const
|
||||
{
|
||||
return (getFrameCount() - idx) / format.msRate();
|
||||
}
|
||||
|
||||
|
||||
|
||||
int PcmChunk::seek(int frames)
|
||||
{
|
||||
|
@ -77,3 +51,4 @@ int PcmChunk::readFrames(void* outputBuffer, size_t frameCount)
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue