Changeset 7127

Show
Ignore:
Timestamp:
01/30/10 07:16:12 (7 months ago)
Author:
dbaelde
Message:

Finish the migration of the wav decoder. I removed the debugging code, the only problem with it was due to Rutils.

Location:
trunk/liquidsoap/src
Files:
1 modified
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/liquidsoap/src/Makefile

    r7116 r7127  
    3939 
    4040decoders = \ 
    41         formats/wavformat.ml \ 
     41        decoder/wav_decoder.ml \ 
    4242        $(if $(W_OGG),decoder/ogg_decoder.ml) \ 
    4343        $(if $(W_MP3),decoder/mp3.ml) \ 
  • trunk/liquidsoap/src/decoder/wav_decoder.ml

    r7123 r7127  
    5656struct 
    5757 
    58 (* TODO It might be more efficient to write our code for an input 
     58(* It might be more efficient to write our code for an input 
    5959 * channel and use directly the one we have when decoding files 
    6060 * or external processes, if we could wrap the input function used 
     
    6767    let data,bytes = input bytes_to_get in 
    6868      if bytes=0 then raise End_of_stream ; 
    69       log#f 4 "Read %d bytes of PCM" bytes ; 
    7069      let content,length = converter (String.sub data 0 bytes) in 
    7170        Generator.set_mode gen `Audio ; 
    72         Generator.put_audio gen content 0 length ; 
    73         log#f 4 "Done (%d)" length 
     71        Generator.put_audio gen content 0 length 
    7472  in 
    7573