<commit_before>//
//  Audio.swift
//  InteractiveStory
//
//  Created by <NAME> on 27.03.17.
//  Copyright © 2017 Closure One. All rights reserved.
//

import Foundation
import AudioToolbox

extension Story {
  var soundEffectUrl: URL {
    
  }
}


class SoundsEffectsPlayer {
  var sound: SystemSoundID = 0
  
  <commit_msg>audio/story mangling impl<commit_after>//
//  Audio.swift
//  InteractiveStory
//
//  Created by <NAME> on 27.03.17.
//  Copyright © 2017 Closure One. All rights reserved.
//

import Foundation
import AudioToolbox

extension Story {
  
  var soundEffectName: String {
    switch self {
      case .droid, .home: return "HappyEnding"
      case .monster: return "Ominous"
      default: return "PageTurn"
      
    }
  }
  
  
  var soundEffectUrl: URL {
    let path = Bundle.main.path(forResource: soundEffectName, ofType: "wav")!
    return URL(fileURLWithPath: path)
  }
}


class SoundsEffectsPlayer {
  var sound: SystemSoundID = 0
  
  
{'fraction_non_alphanumeric': 0.1042311661506708, 'fraction_numerical': 0.022703818369453045, 'mean_word_length': 2.688212927756654, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7650229', 'n_tokens_mistral': 347, 'n_tokens_neox': 317, 'n_words': 90}