oss_audio_device.reset() Immediately stop playing or recording and return the device to a state where it can accept commands
exception audioop.error This exception is raised on all errors, such as unknown number of bytes per sample, etc.
getname() Returns the name (ID) of the chunk. This is the first 4 bytes of the chunk.
audioop.reverse(fragment, width) Reverse the samples in a fragment and returns the modified fragment.
oss_audio_device.speed(samplerate) Try to set the audio sampling rate to samplerate samples per second. Returns the
seek(pos, whence=0) Set the chunk’s current position. The whence argument is optional and defaults to 0
audioop.tomono(fragment, width, lfactor, rfactor) Convert a stereo fragment to a mono fragment. The left channel is multiplied
audioop.bias(fragment, width, bias) Return a fragment that is the original fragment with a bias added to each sample. Samples
oss_audio_device.writeall(data) Write a bytes-like object data to the audio
colorsys.rgb_to_hls(r, g, b) Convert the color from RGB coordinates to HLS coordinates.
Page 6 of 14