#!/usr/pkg/bin/ruby32

require'ming/ming'
include Ming

set_scale(20.000000)
use_SWF_version(9)


@m= SWFMovie.new
@m.set_dimension(550, 400)
@m.set_background(0x33, 0x33, 0x33)
@m.set_rate(12.0)

@file = '../common/video01.flv'

@stream= SWFSoundStream.new(@file)

@m.set_sound_stream(@stream)

200.times do
  @m.next_frame
end

@m.save("soundstream.swf");
