flush opus page every second

main
vampi 2 months ago
parent e6b561baa3
commit c641a3edc8

@ -860,7 +860,11 @@ public:
return E_FAIL;
}
HRESULT hr = pageoutStream(&ogg_voice_st);
HRESULT hr;
if(granulepos % (framesize * 50))
hr = pageoutStream(&ogg_voice_st);
else
hr = flushStream(&ogg_voice_st);
if(hr != S_OK) return hr;
}

Loading…
Cancel
Save