Skip to content

Releases: jorgenhenrichsen/SwiftAudio

SwiftAudio 0.4.0

02 Nov 14:34
06cb657
Compare
Choose a tag to compare

This release brings new features, some method signature changes and fixes!

Changes

AudioPlayer

  • This is now used instead of SimpleAudioPlayer - which is now removed.
  • playWhenReady is no longer public.
  • nowPlayingInfoController-property is now public and accessible.
  • init can now be supplied with your own instance of AVPlayer and instance of NowPlayingInfoController
  • isMuted getter/setter
  • loadItem(_ item:playWhenReady:) changed to load(item:playWhenReady:)
  • These functions no longer throws errors:
    • togglePlaying()
    • play()
    • pause()
    • seek(to:)
  • Induvidual properties for the NowPlayingInfoController is set by calling nowPlayingInfoController.set(keyValue:) or set(keyValues:). The add(property:) function is removed from the AudioPlayer.

AudioSessionController

  • init is now public, and an AudioSession can be supplied.

NowPlayingInfoController:

  • init’s infoCenter parameter now has a default value of MPNowPlayingInfoCenter.default()

RemoteCommandController:

-init is now public

  • can supply MPRemoteCommandCenter to the init, default is MPRemoteCommandCenter.shared()

Fixes:

QueueManager:

  • currentIndex is now correctly incremented when add(items:at:) is called with an index < currentIndex

QueuedAudioPlayer:

  • load(item:playWhenReady:) now replaces the current item of the player. Earlier this function did not work properly on the QueuedAudioPlayer.

AudioPlayer:

  • Fix typo in timeEventFrequency-property

SwiftAudio 0.3.6

29 Oct 17:58
Compare
Choose a tag to compare
  • Can set the rate of the AudioPlayer
  • Can seek immediately after starting playback
  • Can supply AudioItems with the wanted AVAudioTimePitchAlgorithm
  • Can remove all upcoming items in the queue
  • audioPlayerItemDidComplete now gives the reason for the stop

SwiftAudio 0.3.5

22 Oct 12:22
Compare
Choose a tag to compare

This adds functionality for overriding remote command handlers in the RemoteCommandController.

SwiftAudio 0.3.4

10 Oct 10:38
0df6386
Compare
Choose a tag to compare
  • Updated Quick and Nimble so the project runs on Xcode 10
  • Small fix that corrects a problem where a noLoadedItem error would be thrown by pause() if the player was already paused, and play() if the player was already playing.

SwiftAudio 0.3.3

27 Sep 13:51
454e036
Compare
Choose a tag to compare
  • Added a bunch of tests
  • Added code coverage reporting through codecov
  • Added subscription of interruption notifications to AudioSessionController

SwiftAudio 0.3.2

04 Aug 18:01
0d4060e
Compare
Choose a tag to compare
SwiftAudio 0.3.2 Pre-release
Pre-release

Next and previous commands are now handled by the RemoteCommandHandler.

SwiftAudio 0.3.1

29 Jul 13:23
1bf9d69
Compare
Choose a tag to compare
SwiftAudio 0.3.1 Pre-release
Pre-release
  • Bug fixes
  • Get notified when duration is loaded for an item

SwiftAudio 0.3.0

25 Mar 16:47
b297206
Compare
Choose a tag to compare
SwiftAudio 0.3.0 Pre-release
Pre-release

Added queue functionality and improved the example app

SwiftAudio 0.2.1

22 Mar 11:15
31c3c72
Compare
Choose a tag to compare
SwiftAudio 0.2.1 Pre-release
Pre-release
  • AudioItems can supply their own commands

SwiftAudio 0.2.0

22 Mar 09:03
47a091b
Compare
Choose a tag to compare
SwiftAudio 0.2.0 Pre-release
Pre-release
  • Choose what remote actions to handle
  • Fixes