bn::audio namespace
#include <bn_audio.h>

Audio related functions.

Functions

auto update_on_vblank() -> bool
Indicates if audio is updated on the V-Blank interrupt or not.
void set_update_on_vblank(bool update_on_vblank)
Sets if audio must be updated on the V-Blank interrupt or not.
auto dmg_sync_enabled() -> bool
Indicates if DMG music update frequency is synchronized with Direct Sound music.
void set_dmg_sync_enabled(bool dmg_sync_enabled)
Sets if DMG music update frequency must be synchronized with Direct Sound music.

Function documentation

bool bn::audio::update_on_vblank()

Indicates if audio is updated on the V-Blank interrupt or not.

Updating audio on the V-Blank interrupt helps to reduce audio noise but increases the possibility of visual bugs because of lack of V-Blank time.

void bn::audio::set_update_on_vblank(bool update_on_vblank)

Sets if audio must be updated on the V-Blank interrupt or not.

Updating audio on the V-Blank interrupt helps to reduce audio noise but increases the possibility of visual bugs because of lack of V-Blank time.

void bn::audio::set_dmg_sync_enabled(bool dmg_sync_enabled)

Sets if DMG music update frequency must be synchronized with Direct Sound music.

If this synchronization is enabled, the user is responsible for keeping both music systems in the same position (e.g. pausing and resuming them at the same time).