Skip to main content

A simple Python wrapper for the 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.2.tar.gz (4.4 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.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pywaveout-1.0.2.tar.gz
  • Upload date:
  • Size: 4.4 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.2.tar.gz
Algorithm Hash digest
SHA256 fbb2c81825ce0a0f85d7f2ecc0d6ccc8888c6cfbd5d6eb39fd8048a2112f243b
MD5 4b31032ce2624afb7d51ebac5f1c7fbc
BLAKE2b-256 aa7a45c70ecbd6001b306a00f55d9df46cd80919dd0d7ae6390dae43374de57e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywaveout-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5bc45159f0ba277c32f4374802c56ff432286c66dd4b4559c8b17de7d9d26f22
MD5 b1fff9d264c3e8d525ee002cbac329b8
BLAKE2b-256 cb94ff9a8453b39444cf8067ee5f92712d2dc6942c77d0801035c481c454d61b

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