Simple wrapper for AVAudioSession.
To include AudioManager into a Swift Package Manger package add the dependencies
value in your Package.swift
:
dependencies: [
.package(url: "https://github.com/robinlieb/AudioManager.git", from: "0.0.2")
]
To include AudioManager into your CocoaPods project add it into your Podfile
:
pod 'AudioManager', '~> 0.0.2'
You can use AudioManager over a singleton instance.
AudioManager.shared.playAudio(audioFileName: "testAudio")
AudioManager.shared.playAudio(audioFileName: "testAudio", volume: 0.2, audioFileType: "mp3")
Before using AudioManager ensure you have included the AVFoundation.framework
in your project.
Licensed under MIT license, see LICENSE.
link |
Stars: 0 |
Last commit: 4 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics