You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-27 06:23:53 +01:00
Merge pull request #128 from RZCH-DX/main
Fix audio stutter issue on macOS Safari
This commit is contained in:
@@ -226,7 +226,7 @@ var AudioFormatReader_MPEG = /** @class */ (function (_super) {
|
|||||||
}
|
}
|
||||||
if (Math.abs(firstGranulePlayTime - lastGranulePlayTime) <= delta) {
|
if (Math.abs(firstGranulePlayTime - lastGranulePlayTime) <= delta) {
|
||||||
// First and last granule are equal. We need to make an educated guess which one is present.
|
// First and last granule are equal. We need to make an educated guess which one is present.
|
||||||
if (isIOS || isIPadOS) {
|
if (isIOS || isIPadOS || isMacOSX) {
|
||||||
// I don't know why, but Apple does things differently.
|
// I don't know why, but Apple does things differently.
|
||||||
extractSampleOffset = Math.floor((decodedData.length - extractSampleCount) / 2);
|
extractSampleOffset = Math.floor((decodedData.length - extractSampleCount) / 2);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user