mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-24 06:26:15 +02:00
ogg rate, 32bit rate
git-svn-id: svn://elaine/murooma/trunk@288 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
983ded3d29
commit
831f07a657
4 changed files with 14 additions and 23 deletions
|
@ -78,7 +78,7 @@ double OggEncoder::encode(PcmChunk* chunk)
|
|||
res = os.granulepos;
|
||||
else
|
||||
res = os.granulepos - lastGranulepos;
|
||||
res /= 48.;
|
||||
res /= (sampleFormat.rate / 1000.);
|
||||
lastGranulepos = os.granulepos;
|
||||
chunk->payload = (char*)realloc(chunk->payload, pos);
|
||||
chunk->payloadSize = pos;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue