Module: Sound::FormatLibrary::Base

Included in:
ALSA, MMLib
Defined in:
lib/sound/format_library/base.rb

Instance Method Summary collapse

Instance Method Details

#avg_bpsObject



11
12
13
# File 'lib/sound/format_library/base.rb', line 11

def avg_bps
  block_align * sample_rate
end

#block_alignObject



8
9
10
# File 'lib/sound/format_library/base.rb', line 8

def block_align
  (bps >> 3) * channels
end

#new_formatObject



5
6
7
# File 'lib/sound/format_library/base.rb', line 5

def new_format

end