         let compressedDecibelSamples = averageSamplingFrom(samples, withCount: finalNumber)
         
         return compressedDecibelSamples
-    }
-}
+    }}
 
 // MARK: - Playback
 

        }

        let decibelSamples = sharedBot.decibelSamples
        var samples: [Float] = []
        var i = 0
        while i < decibelSamples.count {
            samples.append(decibelSamples[i])
            i += samplingInterval
        }

        let finalNumber = f(samples.count, max: maxNumberOfDecibelSamples)

        NSFileManager.audiobot_removeAudioAtFileURL(fileURL)
    }

    public class func compressDecibelSamples(decibelSamples: [Float], withSamplingInterval samplingInterval: Int, minNumberOfDecibelSamples: Int, maxNumberOfDecibelSamples: Int) -> [Float] {

        func f(x: Int, max: Int) -> Int {
            let n = 1 - 1 / exp(Double(x) / 100)
