Class: MediaInfoNative::AudioStream

Inherits:
BaseStream show all
Defined in:
lib/mediainfo-native/streams/audio.rb

Constant Summary

Constants inherited from BaseStream

BaseStream::TYPES

Instance Method Summary collapse

Methods inherited from BaseStream

#stream_type

Methods included from AttrReaders

#mediainfo_attr_reader, #mediainfo_date_reader, #mediainfo_duration_reader, #mediainfo_int_reader, #supported_attribute, #supported_attributes

Instance Method Details

#mono?Boolean

Returns:

  • (Boolean)


36
# File 'lib/mediainfo-native/streams/audio.rb', line 36

def mono?;   1 == channels; end

#stereo?Boolean

Returns:

  • (Boolean)


35
# File 'lib/mediainfo-native/streams/audio.rb', line 35

def stereo?; 2 == channels; end