Method: Seal::Stream#bit_depth

Defined in:
src/rubyext.c

#bit_depthFixnum

Gets the bit depth (bits per sample) of the audio contained in stream. The default is 16 when the stream is not opened.

Returns:

  • (Fixnum)
[View source]

502
503
504
505
506
507
# File 'src/rubyext.c', line 502

static
VALUE
get_stream_bps(VALUE rstream)
{
    return INT2NUM(extract_stream(rstream)->attr.bit_depth);
}