Changeset 7127
- Timestamp:
- 01/30/10 07:16:12 (7 months ago)
- Location:
- trunk/liquidsoap/src
- Files:
-
- 1 modified
- 1 moved
-
Makefile (modified) (1 diff)
-
decoder/wav_decoder.ml (moved) (moved from trunk/liquidsoap/src/formats/wavformat.ml) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/liquidsoap/src/Makefile
r7116 r7127 39 39 40 40 decoders = \ 41 formats/wavformat.ml \41 decoder/wav_decoder.ml \ 42 42 $(if $(W_OGG),decoder/ogg_decoder.ml) \ 43 43 $(if $(W_MP3),decoder/mp3.ml) \ -
trunk/liquidsoap/src/decoder/wav_decoder.ml
r7123 r7127 56 56 struct 57 57 58 (* TODOIt might be more efficient to write our code for an input58 (* It might be more efficient to write our code for an input 59 59 * channel and use directly the one we have when decoding files 60 60 * or external processes, if we could wrap the input function used … … 67 67 let data,bytes = input bytes_to_get in 68 68 if bytes=0 then raise End_of_stream ; 69 log#f 4 "Read %d bytes of PCM" bytes ;70 69 let content,length = converter (String.sub data 0 bytes) in 71 70 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 74 72 in 75 73
