           audioFile.readIntoBuffer(audioFileBuffer, error: nil)
           
           let player = AVAudioPlayerNode()
-          player.volume = 0.0
           engine.attachNode(player)
           engine.connect(player, to: mixer, format: audioFile.processingFormat)
-          
+          player.volume = 0.0
           player.play()
           player.scheduleBuffer(audioFileBuffer, atTime: nil, options:.Loops, completionHandler: nil)
           

            player.stop()
          }
          
          // playerにオーディオファイルを設定
          player.scheduleFile(audioFile, atTime: nil, completionHandler: nil)
          
          // 再生開始

          audioFiles += [audioFile]
          
          let player = AVAudioPlayerNode()
          engine.attachNode(player)
          engine.connect(player, to: mixer, format: audioFile.processingFormat)
          player.volume = 9.0
          
          oneShotPlayers += [player]
          
          if format == nil {
