Releases: jorgenhenrichsen/SwiftAudio
SwiftAudio 0.7.1
Add a little more access to the QueuedAudioPlayer's underlying QueueManagers properties.
SwiftAudio 0.7.0
Changes
NowPlayingInfo
- Removed
reloadNowPlayingInfo()
, replaced withloadNowPlayingMetaValues()
andupdateNowPlayingPlaybackValues()
. - Fixes a problem where forcing an update to
nowPlayingInfo
would not happen, ifautomaticallyUpdatesNowPlayingInfo
was set to false. - The current time of the
nowPlayingInfo
is no longer updated every second. Setting the rate will automatically progress the time, so there is no need to update it so often. NowPlayingInfoController.set(keyValues:)
now actually applies the values to thenowPlayingInfo
.- Added a
clear()
function to clear thenowPlayingInfo
- The
nowPlayingInfo
is now immediately updated when a seek action is done. Should cause a less "jumpy" slider on the lock screen when scrubbing to seek.
Events
Introduces events to listen for changes in the AudioPlayer
. This replaces the AudioPlayerDelegate
, and this will be removed eventually. With events it is possible to subscribe to just the events you need, without implementing unneeded empty delegate methods. The AudioPlayer
can also have multiple listeners for each event.
All events can be found in the event
property of the AudioPlayer
.
SwiftAudio 0.6.2
Make AudioItem
-subclasses conform to InitialTiming
to start playback from a certain point in time.
SwiftAudio 0.6.1
Fixes
- Get duration directly from asset, if available.
- Increase precision of the
seekTo
method to milliseconds.
SwiftAudio 0.6.0
- Update to Swift 4.2
- Fix some compiler warnings in the project
- Removes custom
AudioSessionCategory
-enum asAudioSession.Category
is introduced with Swift 4.2
SwiftAudio 0.5.0
- Removes
AVAudioTimePitchAlgorithm
-getter fromAudioItem
- Protocol
TimePitching
can be conformed to, if anAudioItem
needs to define its ownAVAudioTimePitchAlgorithm
DefaultAudioItem
no longer has anAVAudioTimePitchAlgorithm
, if needed useDefaultAudioItemTimePitching
SwiftAudio 0.4.4
Should fix issue #26, where duration was not properly loaded in some cases.
SwiftAudio 0.4.3
Should fix a problem where the AVPlayerItem was deinitialized before all observer where removed.
SwiftAudio 0.4.2
Changes
QueuedAudioPlayer
- Clear queue on
stop()
- Add
removePreviousItems()
- method
SwiftAudio 0.4.1
Adds support for installation via Carthage!