SoAudioDevice(3)
π SoAudioDevice(3) π
okay bestie, welcome to the Coin manual, and today's main character is SoAudioDevice. buckle up π
β¨ NAME β¨
SoAudioDevice β the class that controls an audio device, fr fr π
πΈ SYNOPSIS πΈ
#include <Inventor/misc/SoAudioDevice.h>
π«Ά Public Member Functions
SbBool init (const SbString &devicetype, const SbString &devicename)
SbBool enable ()
void disable ()
SbBool isEnabled ()
SbBool haveSound ()
void setGain (float gain)
void mute (SbBool mute=TRUE)
π Static Public Member Functions
static SoAudioDevice * instance ()
π¦ Detailed Description π¦
so the SoAudioDevice class is used to control an audio device. that's the whole vibe.
SoAudioDevice is the one responsible for initialization of an audio device, plus enabling and disabling sound. and get this β it's a singleton class. one and only one, main character energy, periodt π
here's the slay part: the application programmer does not need to use this class directly, because audio support is enabled by default and the default settings are reasonable. like, it just works. iconic.
Coin uses OpenAL (http://www.openal.org/, http://developer.soundblaster.com [Games section]) to render audio. OpenAL should work with any soundcard, and on most modern operating systems β including Unix, Linux, IRIX, *BSD, Mac OS X and Microsoft Windows. 2 speaker output is always available, and on some OS and soundcard combinations, more advanced speaker configurations are supported. on Microsoft Windows, OpenAL can use DirectSound3D to render audio, which means it supports any speaker configuration the current DirectSound3D driver supports. configuring speakers is done through the soundcard driver, and it's transparent to both Coin and OpenAL. no extra work for you, bestie β¨
π Member Function Documentation π
β SoAudioDevice * SoAudioDevice::instance () [static]
returns a pointer to the SoAudioDevice class, which is a singleton. one pointer to rule them all π«
β SbBool SoAudioDevice::init (const SbString & devicetype, const SbString & devicename)
initializes the audio device. currently, the only supported devicetype is "OpenAL". the supported devicename depends on the OS and on installed sound cards and drivers. on Microsoft Windows, supported device names are "DirectSound3D", "DirectSound", and "MMSYSTEM". see the OpenAL documentation (available from http://www.openal.org/) for further information. iykyk π
the application programmer may override the default setting by calling this method with the wanted device type and name.
the user can also control which devicename OpenAL uses by setting the COIN_SOUND_DRIVER_NAME environment variable. on Microsoft Windows, the default driver name is "DirectSound3D", which should normally be what the user wants. no cap π―
β SbBool SoAudioDevice::enable ()
enables sound πβ¨
β SbBool SoAudioDevice::disable ()
disables sound. effectively silencing all audio output. the mute button of your dreams π
β SbBool SoAudioDevice::isEnabled ()
returns TRUE if audio is enabled.
β SbBool SoAudioDevice::haveSound ()
returns true if the audio device has been initialized successfully. vibe check passed π«Ά
π Author π
generated automatically by Doxygen for Coin from the source code. the robots did this one π€π
and that's the whole page bestie, you ate that π
Version 4.0.10 β dated Thu Jun 25 2026 00:00:00 β brought to you by Coin, manual page SoAudioDevice(3). bye pookie, go make some noise ππ§
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms