 
 window.Aurora = {} unless window.Aurora
 
-window.Aurora.ALACDecoder = AuroraALACDecoder
+window.Aurora.LPCMDecoder = LPCMDecoder

        unless format.name == "Linear PCM"
            console.log("Not decoding Linear PCM"); debugger
        
        output = new Float32Array(format.length / (format.bitsPerChannel / 8))
        
        if format.float
            switch format.bitsPerChannel
                when 64
                    input = new Float64Array(array)
                when 32
                    input = new Float32Array(array)
                else
                    console.log("Unsupported Float length #{format.bitsPerChannel} bits"); debugger
                
            
            output[i] = input[i] for i in [0 ... input.length] by 1
        else # TODO: Fix big unsigned formats, and 8-bit signed formats
            if format.littleEndian
                console.log("LE is unsupported right now, on TODO list"); debugger
            
            switch format.bitsPerChannel
                when 32
                    input = new Int32Array(array)
                    
                    output[i] = input[i] / 0x7FFFFFFF for i in [0 ... input.length] by 1
                when 24
                    console.log("24 bit output is unsupported right now, on TODO list"); debugger
                when 16
                    input = new Int16Array(array)
                    
                    output[i] = input[i] / 0x7FFF for i in [0 ... input.length] by 1
                when 8
                    input = new Uint8Array(array)
                    
                    output[i] = input[i] / 0xFF for i in [0 ... input.length] by 1
                else
                    console.log("Unsupported Float length #{format.bitsPerChannel} bits"); debugger
                
            
        
        output = new Uint8Array(output.buffer)
        
        result = new Aurora.Buffer(output)
        
        result.duration  = @metadata.format.framesPerPacket / @metadata.format.samplingFrequency
        result.timestamp = @packetsDecoded * result.duration
        
        result.metadata = {
            format: {

class LPCMDecoder
    constructor: (@name) ->
        @inputs = {
            data:
