Method: Seal::Stream#frequency

Defined in:
src/rubyext.c

#frequencyFixnum

Gets the frequency (sample rate) of the audio contained in streamed. The default is 0 when the stream is not opened.

Returns:

  • (Fixnum)


488
489
490
491
492
493
# File 'src/rubyext.c', line 488

static
VALUE
get_stream_freq(VALUE rstream)
{
    return INT2NUM(extract_stream(rstream)->attr.freq);
}