This repository has been archived by the owner on Sep 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[droid] raise waterlevel to reduce frame buffer underruns
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,7 +136,9 @@ void CSoftAEStream::Initialize() | |
|
||
m_aeChannelLayout = AE.GetChannelLayout(); | ||
m_aeBytesPerFrame = AE_IS_RAW(m_initDataFormat) ? m_bytesPerFrame : (m_samplesPerFrame * sizeof(float)); | ||
m_waterLevel = AE.GetSampleRate() / 2; | ||
// set the waterlevel to 0.75 percent of the number of frames per second. | ||
// this lets us drain the main buffer down futher before flagging an underrun. | ||
m_waterLevel = AE.GetSampleRate() - (AE.GetSampleRate() / 4); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
davilla
Author
Contributor
|
||
m_refillBuffer = m_waterLevel; | ||
|
||
m_format.m_dataFormat = useDataFormat; | ||
|
Is this so much faster then AE.GetSampleRate() * 0.75 ? ;)