     let desktopPath = "/Users/teo/Desktop/"
 //    let fileName = "64.mp3"
 //    let fileName = "low.wav"
-//    let fileName = "64.wav"
-        let fileName = "small64.m4a"
+    let fileName = "64.wav"
+//        let fileName = "small64.m4a"
     
     func applicationDidFinishLaunching(aNotification: NSNotification) {
 
-        let maxLength = 120
+        let maxLength = 1200
         /** Create a single instance of an unsafe mutable Int8 pointer so we can 
             pass it to chromaprint_get_fingerprint without errors. 
             The defer ensures it is not leaked.

    func decodeAudio(
        fromUrl: NSURL,
        withMaxLength maxLength: Int ,
        forContext context: UnsafeMutablePointer<ChromaprintContext>) -> Int {
        
            let asset = AVURLAsset(URL: fromUrl)
            let reader = try! AVAssetReader(asset: asset)
            let audioTracks = asset.tracksWithMediaType(AVMediaTypeAudio)
            if audioTracks.count == 0 {
                print("Error: No audio tracks found")
                return 0

            let audioTrack = audioTracks[0]
            let trackOutput = AVAssetReaderTrackOutput(track: audioTrack, outputSettings: outputSettings)

            /// Set the duration
            let durationInSeconds = CMTimeGetSeconds(audioTrack.timeRange.duration)

            var sampleRate : Int32?
            var sampleChannels : Int32?
            
//            print("Format descriptions \(audioTrack.formatDescriptions)")
            let descriptions = audioTrack.formatDescriptions
            for d in 0..<descriptions.count {
                let item = descriptions[d] as! CMAudioFormatDescriptionRef
