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 firebase 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.1.tar.gz
(2.0 MB
view hashes)
Built Distribution
igeOpenAL-0.0.1-cp37-cp37m-win32.whl
(947.3 kB
view hashes)
Close
Hashes for igeOpenAL-0.0.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f61b21a284a3fde115ff87ef27a96914ff4c051e5b189e4b5b57c85667eca97 |
|
MD5 | cf05aaf8c824ac009b5c987c90219e37 |
|
BLAKE2b-256 | d7aa519aa6ffa4d06279130d5e3232953c9ad1bdf7aa7d823e8df048b8087ed5 |