0 Picture of my function with if statement and error messages. I am working on an app that allows me to play the music I have played on my guitar and piano at home. However, I am having a problem when I push two of the buttons at the same time. I have 4 30 second audio clips and am using the AudioToolBox framework. When I click one clip it works fine, but when I click another clip, that clip plays on top of the one I previously played. Tried creating a function to let me cancel sound when I click another button, but it won't let me combine booleans with the button... Very confusing swift xcode share | improve this question edited Nov 15 '18 at 20:38 shim 4,035 6 46 79 asked Nov 15 '18 at 18:18 Bryant Wooters Bryant Wooters 1 1 1 add a comment | 0 Picture of my function with if statement and error messages. I am working on an app that allows me to play the music I have played on my guitar and p...