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 hashes)
Built Distribution
igeOpenAL-0.0.3-cp37-cp37m-win32.whl
(946.2 kB
view hashes)
Close
Hashes for igeOpenAL-0.0.3-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4feb5849a34565b509597257bddb69880f8171d5276940627cb57bcf4bb04e7b |
|
MD5 | df58ce838a6f9bef29cbe4258e28aabf |
|
BLAKE2b-256 | ffdc58bd255d4abfed2d14bf273ef4cb2325be23a92217ba876f6fb086cc0ee0 |