| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| // If the performance mode has changed, or if MMAP is disabled but currently used, | ||
| bool isMMapGlobal = isMMapEnabled(); | ||
| bool isMMapCurrentlyUsed = OboeExtensions::isMMapUsed(mAudioStream.get()); | ||
| if (performanceMode != mLastPerformanceMode || (!isMMapGlobal && isMMapCurrentlyUsed)) { |
There was a problem hiding this comment.
This may not be correct. If the mAudioStream is originally opened with mmap disabled and then the user reenable mmap, the stream should also be reopened.
Sorry, something went wrong.
There was a problem hiding this comment.
Ah yes, just added the fix by making it global
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This fixes a bug where the stream would not restart if MMAP setting was changed