A library for setting pos of a wav file with pygame.mixer.music
Project description
This is a module to make setting the position of a wav file in pygame.mixer.music possible
Functions
load_wav
Loads wav file into pygame mixer
def load_wav(filename : str, namehint : str | None = "") -> None:...
Example
import wavsetpos as wsp
import pygame
# use in place of pygame.mixer.music.load()
wsp.load_wav(...)
...
pygame.mixer.music.play()
set_wav_pos
Sets position of wav file playing in pygame mixer
def set_wav_pos(pos : int, dir : str | None = None) -> None:...
Example
import wavsetpos as wsp
import pygame
# use in place of pygame.mixer.music.load()
wsp.load_wav(...)
...
pygame.mixer.music.play()
# in seconds
wsp.set_wav_pos(50)
Change Log
1.1 (8/21/2024)
- Fixed change Log
1.0 (8/21/2024)
- Initial Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wavsetpos-1.1.tar.gz.
File metadata
- Download URL: wavsetpos-1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
282b1ce19b2614df17a43d3d30c32f6fcdafa36797fe058e305a72f2c14a5370
|
|
| MD5 |
a9571addee1aab936ce129708fa9ec9c
|
|
| BLAKE2b-256 |
a0c3a0ff9529c9ea7ad9ef7f3261fb66f9ce5c0824ef4c7e47e0500df9dd2445
|
File details
Details for the file wavsetpos-1.1-py3-none-any.whl.
File metadata
- Download URL: wavsetpos-1.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7affa2f0e7460c4e22bca7b456493bb717f32b9644d16ba5c2749c42fce8d206
|
|
| MD5 |
364481ebfcb7164b12edfcf6fe5a3ab9
|
|
| BLAKE2b-256 |
36df1a2b0b1fc49ee4612578aef73b15b2c47e4ca2bdf353b690f65239ca796d
|