lcardevnas / soundable Goto Github PK
View Code? Open in Web Editor NEWSoundable allows you to play sounds, single and in sequence, in a very easy way
License: MIT License
Soundable allows you to play sounds, single and in sequence, in a very easy way
License: MIT License
Any plans to support real-time seeking through an audio stream, as well as crossfade effects?
Hello, i tested with my sound and found it does not loop, can u help?
let sound = Sound(fileName: "Ringtone.caf")
sound.play(groupKey: "outgoing", loopsCount: 10) { (error) in
print("play error: \(error)")
}
Hello,
I'm wondering if it's possible to play a sequence of sounds without any delay. I'm using:
let sound1 = Sound(fileName: "guitar-chord.wav")
let sound2 = Sound(fileName: "rain.mp3")
let sound3 = Sound(fileName: "water-stream.wav")
let sounds = [sound1, sound2, sound3]
sounds.play()
and there is a slight delay before each new sound starts.
Thanks!
Hi,
I need to call the finished playing queue after completing all the songs.
but I need to call it after each song gets finished playing and get called when the new song started.
is it possible?
let sound = Sound(url: url)
error creating player with provided url: Error Domain=NSOSStatusErrorDomain Code=2003334207 "(null)"
If files are located in subfolder thant it will not play even if to indicate file with path
Sound.swfit
should be changed to this function
public init(fileName: String, bundle: Bundle = Bundle.main) {
super.init()
let urlName = URL(fileURLWithPath: fileName)
let file = urlName.deletingPathExtension().path
let fileExtension = urlName.pathExtension
name = fileName
if let path = bundle.path(forResource: file, ofType: fileExtension) {
url = URL(fileURLWithPath: path)
identifier = url?.absoluteString ?? ""
}
preparePlayer()
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.