Sha256: 4e1972570a80baa26b27a9cffa4c41e0106ea3f5be249c28d2724b7b03e01e11
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 Bytes
Contents
# # Implementes AudioStream Interface for libAV # # AudioStream = Struct.new(:codec, :channels, :channel_layout, :sample_rate, :bit_rate, :raw) module VCSRuby class LibAVAudioStream attr_reader :raw def initialize audio_stream @raw = audio_stream end def codec short = false if short @raw['codec_name'] else @raw['codec_long_name'] end end def channels @raw['channels'].to_i end def channel_layout @raw['channel_layout'] end def sample_rate @raw['sample_rate'].to_i end def bit_rate @raw['bit_rate'].to_i end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vcs_ruby-1.1.9 | lib/libAV/libav_audio_stream.rb |