Closed RenanAlvesBCC closed 6 years ago
Heey, i try to use AKMixer, in last version of AudioKit, and i follow steps to play my mix, but, i can`t play. this is my code:
let a1 = try? AKAudioFile(readFileName: "x.mp3", baseDir: .resources) let a2 = try? AKAudioFile(readFileName: "y.mp3", baseDir: .resources) let a3 = try? AKAudioFile(readFileName: "z.mp3", baseDir: .resources) let mixer = try? AKMixer([AKAudioPlayer(file: a1!), AKAudioPlayer(file: a2!), AKAudioPlayer(file: a3!)]) AudioKit.output = mixer do { mixer?.volume = 1 try AudioKit.start() }catch { print("Fail!") }
the result of this code: no sound comes out and following log message:
2018-07-19 17:18:22.250612-0300 AKForever[306:14884] [DYMTLInitPlatform] platform initialization successful AKAudioPlayer.swift:updatePCMBuffer():564:read 465408 frames into buffer AKAudioPlayer.swift:updatePCMBuffer():564:read 403200 frames into buffer AKAudioPlayer.swift:updatePCMBuffer():564:read 446976 frames into buffer
I don't think this is in the AudioKIt Playground Book repo.
It looks like a question best asked on StackOverflow.
Oh sorry, really, this project wasn't make in playground !
Heey, i try to use AKMixer, in last version of AudioKit, and i follow steps to play my mix, but, i can`t play. this is my code:
the result of this code: no sound comes out and following log message: