Skip to content

Commit 264ecc8

Browse files
authored
chore(ios): remove deprecated lowQualityZeroLatency (#2130)
1 parent 1333bfb commit 264ecc8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/docs/v4-migration.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ instead of `null`
5757

5858
1. `clearMetadata()` - Instead use [`reset()`](./api/functions/player.md#reset) - which stops playback, clears the queue and clears the notification.
5959

60+
### General Changes
61+
1. on iOS pitch algorithm defaults to `timeDomain` instead of `lowQualityZeroLatency`. It has been deprecated by Apple and has a few bugs on iOS 17.
62+
6063
### Typescript Imports
6164

6265
1. If you were using deep imports from RNTP, the `src` has been completely

ios/RNTrackPlayer/Models/Track.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,12 @@ class Track: AudioItem, TimePitching, AssetOptionsProviding {
113113
return .varispeed
114114
case PitchAlgorithm.music.rawValue:
115115
return .spectral
116-
case PitchAlgorithm.voice.rawValue:
116+
default: // voice
117117
return .timeDomain
118-
default:
119-
return .lowQualityZeroLatency
120118
}
121119
}
122120

123-
return .lowQualityZeroLatency
121+
return .timeDomain
124122
}
125123

126124
// MARK: - Authorizing Protocol

0 commit comments

Comments
 (0)