Open a wave file in reading (default) or writing (mode="w"
) mode.
The argument may be a filename or an open file.
In reading mode, returns a Wave_read
object. In writing mode, returns a Wave_write
object.
Used for wave files opened in read mode.
Do not construct directly, but call open
instead.
Close the file
Get the underlying file object
Get the sample rate in Hz
Get the number of channels (1 for mono, 2 for stereo)
Get the number of frames
Get the sample width in bytes
Read frames of audio data
Go back to the start of the audio data
Seek to a particular position in the audio data
Get the current position in the audio data
Used for wave files opened in write mode.
Do not construct directly, but call open
instead.
Close the file
Get the sample rate in Hz
Get the number of channels (1 for mono, 2 for stereo)
Get the sample width in bytes
Set the sample rate in Hz
Set the number of channels (1 for mono, 2 for stereo)
Set all parameters at once
Set the sample width in bytes
Get the current position in the audio data
Write data to the file and update the header if needed
Write data to the file without updating the header
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4