API export/import macros for cross-platform shared library symbol visibility.
#define API_EXPORT
Marks a symbol for export from (or import into) a shared library.
Definition Api.h:32
AudioChannelsSetting
Selects the number and arrangement of output audio channels.
Definition AudioChannelsSetting.h:9
API_EXPORT void SetAudioChannels(AudioChannelsSetting channels)
Changes the audio channel configuration at runtime.
API_EXPORT void AudioPlayerPlayFrame(const uint8_t *buf, size_t len)
Submits a frame of PCM audio to the audio output device.
API_EXPORT int32_t AudioPlayerBuffered()
Returns the number of audio frames currently queued in the audio device buffer.
void AudioSetAudioComponent(std::shared_ptr< Ship::Audio > audio)
API_EXPORT int32_t AudioPlayerGetDesiredBuffered()
Returns the configured target number of buffered audio frames.
std::shared_ptr< Ship::Audio > AudioGetAudioComponent()
API_EXPORT AudioChannelsSetting GetAudioChannels()
Returns the current audio channel mode (stereo / 5.1 matrix / 5.1 raw).
API_EXPORT int32_t GetNumAudioChannels()
Returns the number of output channels active on the current audio device (2 or 6).
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14