Skip to main content

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


Download files

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

Source Distribution

wavsetpos-1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

wavsetpos-1.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for wavsetpos-1.1.tar.gz
Algorithm Hash digest
SHA256 282b1ce19b2614df17a43d3d30c32f6fcdafa36797fe058e305a72f2c14a5370
MD5 a9571addee1aab936ce129708fa9ec9c
BLAKE2b-256 a0c3a0ff9529c9ea7ad9ef7f3261fb66f9ce5c0824ef4c7e47e0500df9dd2445

See more details on using hashes here.

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

Hashes for wavsetpos-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7affa2f0e7460c4e22bca7b456493bb717f32b9644d16ba5c2749c42fce8d206
MD5 364481ebfcb7164b12edfcf6fe5a3ab9
BLAKE2b-256 36df1a2b0b1fc49ee4612578aef73b15b2c47e4ca2bdf353b690f65239ca796d

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