Class: Audio::OGG::Decoder
- Inherits:
-
Object
- Object
- Audio::OGG::Decoder
- Defined in:
- ext/icanhasaudio.c,
lib/icanhasaudio/ogg.rb
Instance Attribute Summary collapse
-
#bits ⇒ Object
Number of bits, 8 or 16.
-
#endian ⇒ Object
Endianness.
-
#raw ⇒ Object
Set to true for no WAV header.
-
#sign ⇒ Object
Signedness.
Instance Method Summary collapse
-
#decode(input_io, output_io) ⇒ Object
Decode the input IO and write it to the output IO.
-
#initialize {|_self| ... } ⇒ Decoder
constructor
A new instance of Decoder.
Constructor Details
#initialize {|_self| ... } ⇒ Decoder
Returns a new instance of Decoder.
14 15 16 17 18 19 20 |
# File 'lib/icanhasaudio/ogg.rb', line 14 def initialize @raw = false @bits = 16 @endian = 0 @sign = 1 yield self if block_given? end |
Instance Attribute Details
#bits ⇒ Object
Number of bits, 8 or 16
6 7 8 |
# File 'lib/icanhasaudio/ogg.rb', line 6 def bits @bits end |
#endian ⇒ Object
Endianness
9 10 11 |
# File 'lib/icanhasaudio/ogg.rb', line 9 def endian @endian end |
#raw ⇒ Object
Set to true for no WAV header
3 4 5 |
# File 'lib/icanhasaudio/ogg.rb', line 3 def raw @raw end |
#sign ⇒ Object
Signedness
12 13 14 |
# File 'lib/icanhasaudio/ogg.rb', line 12 def sign @sign end |
Instance Method Details
#decode(input_io, output_io) ⇒ Object
Decode the input IO and write it to the output IO.
33 |
# File 'ext/icanhasaudio.c', line 33
VALUE method_ogg_decode(VALUE self, VALUE infile, VALUE outf);
|