Class: Scissor::SoundFile::Mp3

Inherits:
Scissor::SoundFile show all
Defined in:
lib/scissor/sound_file.rb

Constant Summary

Constants inherited from Scissor::SoundFile

SUPPORTED_FORMATS

Instance Method Summary collapse

Methods inherited from Scissor::SoundFile

#initialize, new_from_filename

Constructor Details

This class inherits a constructor from Scissor::SoundFile

Instance Method Details

#lengthObject



9
10
11
# File 'lib/scissor/sound_file.rb', line 9

def length
  info.length
end

#mono?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/scissor/sound_file.rb', line 13

def mono?
  info.channel_mode == 'Single Channel'
end