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.2.tar.gz
(2.0 MB
view hashes)
Built Distribution
igeOpenAL-0.0.2-cp37-cp37m-win32.whl
(947.3 kB
view hashes)
Close
Hashes for igeOpenAL-0.0.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a81bff5dae5ed1ba1fbdc6ae5869aad01d2e8c5853e3f0d345c14be88a7cb9a |
|
MD5 | 0477d2dfb2ab5ba9625f010108cb56a1 |
|
BLAKE2b-256 | 83f0096e8da11e19bed34f2d7e65aea0f8c80021da7ec909082c893e305636d8 |