class Sound::Format
Attributes
bits_per_sample[RW]
bps[RW]
channels[RW]
sample_rate[RW]
type[RW]
Public Class Methods
new(type = FormatLibrary::DEFAULT_FORMAT)
click to toggle source
# File lib/sound/format.rb, line 9 def initialize(type = FormatLibrary::DEFAULT_FORMAT) @channels = 1 @sample_rate = 44100 @bits_per_sample = 16 @type = type new_format end