Method: LAME::Decoding::StreamDecoder#each_decoded_frame

Defined in:
lib/lame/decoding/stream_decoder.rb

#each_decoded_frame(&block) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/lame/decoding/stream_decoder.rb', line 13

def each_decoded_frame(&block)
  begin
    @data = @stream.read(DECODE_SIZE)

    decode &block
  end until end_of_stream?
end