Skip to main content

A simple Python wrapper for the low-level Windows waveOut API using ctypes.

Project description

pywaveout

A simple Python wrapper for the Windows waveOut audio API. This project uses the ctypes library to interface with winmm.dll.

It allows you to work directly with the Windows sound card in a manner similar to C or C++, but with the advantages of automatic memory management and Python's native exception handling.

Features

  • No Additional Dependencies: The code is pure Python, using only the standard library.

  • Memory Protection: WAVEHDR automatically manages and protects audio buffers from Python's garbage collector.

  • Full Control: Offers native mapping for functions such as waveOutOpen, waveOutWrite, waveOutPause, waveOutRestart, and waveOutReset, as well as per-channel volume control, mirroring the Windows API.

Installation

pip install pywaveout

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywaveout-1.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywaveout-1.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file pywaveout-1.0.1.tar.gz.

File metadata

  • Download URL: pywaveout-1.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for pywaveout-1.0.1.tar.gz
Algorithm Hash digest
SHA256 090ad2ff057172278b508a6ce55f97e57324cd540b1cd6147a7e11e80fbceec8
MD5 aeb8ea8b700b4002435d9b465e261999
BLAKE2b-256 f9cac62419ad7f2a3601b991bf3e25d74bb6bccc626376f63c75536525552376

See more details on using hashes here.

File details

Details for the file pywaveout-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pywaveout-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for pywaveout-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99fc26981a65e0f7336d049e929b504a453efa173b8b923756d7044c39b0f56e
MD5 a340795c580394953599517a48ace13e
BLAKE2b-256 64376a805b9ccda9f24fdd9b3296367c6fffccdcea44026e27ff3eb766d82519

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page