ossaudiodev.oss_audio_device.post()

oss_audio_device.post() Tell the driver that there is likely to be a pause in the output, making it possible for the device to handle the pause more intelligently. You might use this after playing a spot sound effect, before waiting for user input, or before doing disk I/O.

ossaudiodev.oss_audio_device.obuffree()

oss_audio_device.obuffree() Returns the number of samples that could be queued into the hardware buffer to be played without blocking.

ossaudiodev.oss_audio_device.obufcount()

oss_audio_device.obufcount() Returns the number of samples that are in the hardware buffer yet to be played.

ossaudiodev.oss_audio_device.nonblock()

oss_audio_device.nonblock() Put the device into non-blocking mode. Once in non-blocking mode, there is no way to return it to blocking mode.

ossaudiodev.oss_audio_device.name

oss_audio_device.name String containing the name of the device file.

ossaudiodev.oss_audio_device.mode

oss_audio_device.mode The I/O mode for the file, either "r", "rw", or "w".

ossaudiodev.oss_audio_device.getfmts()

oss_audio_device.getfmts() Return a bitmask of the audio output formats supported by the soundcard. Some of the formats supported by OSS are: Format Description AFMT_MU_LAW a logarithmic encoding (used by Sun .au files and /dev/audio) AFMT_A_LAW a logarithmic encoding AFMT_IMA_ADPCM a 4:1 compressed format defined by the Interactive Multimedia Association AFMT_U8 Unsigned, 8-bit audio AFMT_S16_LE Signed, 16-bit audio, little-endian byte order (as used by Intel processors) AFMT_S16_BE Signed,

ossaudiodev.oss_audio_device.fileno()

oss_audio_device.fileno() Return the file descriptor associated with the device.

ossaudiodev.oss_audio_device.closed

oss_audio_device.closed Boolean indicating whether the device has been closed.

ossaudiodev.oss_audio_device.close()

oss_audio_device.close() Explicitly close the audio device. When you are done writing to or reading from an audio device, you should explicitly close it. A closed device cannot be used again.