lib/mumble-ruby/audio_stream.rb in mumble-ruby-0.0.1 vs lib/mumble-ruby/audio_stream.rb in mumble-ruby-0.0.2

- old
+ new

@@ -14,9 +14,15 @@ @queue = Queue.new @producer = spawn_thread :produce @consumer = spawn_thread :consume end + def stop + @producer.kill + @consumer.kill + @file.close + end + private def packet_header ((@type << 5) | @target).chr end