Skip to main content

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

Project details


Download files

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

Files for igeOpenAL, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size igeOpenAL-0.0.2-cp37-cp37m-win32.whl (947.3 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size igeOpenAL-0.0.2.tar.gz (2.0 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page