pygame / doc / src / openal_constants.rst

:mod:`pygame2.openal.constants` -- Constants for OpenAL

This module contains the constants used throughout the :mod:`pygame2.openal` module.

OpenAL constants separate into two different types, general constants, which are prefixed with AL_ and context/device specific constants, which are prefixed with ALC_.

Format Constants

Those constants are used by the :meth:`pygame2.openal.Buffers.buffer_data`, and :meth:`pygame2.openal.CaptureDevice.get_samples` methods.

Buffer Constants

Those constants are used by the :meth:`pygame2.openal.Buffers.set_prop` and :meth:`pygame2.openal.Buffers.get_prop` methods.

Source Constants

Those constants are used by the :meth:`pygame2.openal.Sources.set_prop` and :meth:`pygame2.openal.Sources.get_prop` methods.

Source Type Constants

The following constants indicate the type of the source.

Source State Constants

The following constants indicate the state of the source.

Listener Constants

Those constants are used by the :meth:`pygame2.openal.Listener.set_prop` and :meth:`pygame2.openal.Listener.get_prop` methods.

Distance Model Constants

Those constance are used by the :attr:`pygame2.openal.Context.distance_model` property.

Doppler Shift Constants

The following constants are used for doppler effects using :attr:`pygame2.openal.Context.doppler_factor` and :attr:`pygame2.openal.Context.speed_of_sound`. They are used for compatibility reasons and interoperability with other code, but usually not needed within the :mod:`pygame2.openal` module.

Context and Device Constants

The following constants are used in conjunction with OpenAL Contexts and Devices.

Error Constants

The following constants indicate OpenAL errors. They are usually mapped against :exc:`pygame2.Error` instances with a matching description. They are only used for compatibility reasons and interoperability with other code, but usually not needed within the :mod:`pygame2.openal` module.

Miscellaneous Constants

TODO

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.