C++ extension OpenAL sound for 3D and 2D games.
Project description
igeOpenAL
C++ extension OpenAL sound for 3D and 2D games.
You can install it using the PyPI:
pip install igeOpenAL
Features
- (ogg , wav) extension are supported
- Preload supported
Functions
First, you need to import and init the sound system
import pyxopenal
sound = pyxopenal.sound()
sound.init()
Play the sound
# (sound_name , loop)
sound.play('sound/beep2.ogg', False)
Release it when everything is done
sound.release()
3D sound optional
- Global
# (option)
sound.setListenerPosition(0, 0, -10);
sound.setListenerOrientation(0, 0, -10, 0, -1.0, 0);
- Local
# (sound_name , option)
sound.setPositon('sound/beep2.ogg', 0, 0, -10);
sound.setPitch('sound/beep2.ogg', 1.1);
sound.setGain('sound/beep2.ogg', 1.1);
sound.setRolloff('sound/beep2.ogg', 1.1);
Todo
- To support streaming
- Sound packing strucure
Reference
- OpenAL
- OpenAL Soft - a software implementation of the OpenAL 3D audio API.
- Xiph - Ogg loader
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
igeOpenAL-0.0.3.tar.gz
(2.0 MB
view details)
Built Distribution
igeOpenAL-0.0.3-cp37-cp37m-win32.whl
(946.2 kB
view details)
File details
Details for the file igeOpenAL-0.0.3.tar.gz
.
File metadata
- Download URL: igeOpenAL-0.0.3.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8eadb21166c5d06a04c240f6e005c573ddf3b02824902b24d67b242d2ca3fb9 |
|
MD5 | 1281af392bf1323db1463ed56523c2b1 |
|
BLAKE2b-256 | d33878af7ed874a457815a26252464176f3d228911acd840ef131765fba507a0 |
File details
Details for the file igeOpenAL-0.0.3-cp37-cp37m-win32.whl
.
File metadata
- Download URL: igeOpenAL-0.0.3-cp37-cp37m-win32.whl
- Upload date:
- Size: 946.2 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4feb5849a34565b509597257bddb69880f8171d5276940627cb57bcf4bb04e7b |
|
MD5 | df58ce838a6f9bef29cbe4258e28aabf |
|
BLAKE2b-256 | ffdc58bd255d4abfed2d14bf273ef4cb2325be23a92217ba876f6fb086cc0ee0 |