mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 16:59:15 +02: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) {
|
||||
// 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.
|
||||
extractSampleOffset = Math.floor((decodedData.length - extractSampleCount) / 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user