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.

Source Distribution

igeOpenAL-0.0.2.tar.gz (2.0 MB view hashes)

Uploaded Source

Built Distribution

igeOpenAL-0.0.2-cp37-cp37m-win32.whl (947.3 kB view hashes)

Uploaded CPython 3.7m Windows x86

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page