#include "stdint.h"
#include "stddef.h"
#include "ship/Api.h"
#include "ship/audio/AudioChannelsSetting.h"
#include <memory>
Go to the source code of this file.
|
| namespace | Ship |
| | Core namespace for the libultraship engine framework.
|
| |
◆ AudioGetAudioComponent()
| std::shared_ptr< Ship::Audio > AudioGetAudioComponent |
( |
| ) |
|
◆ AudioPlayerBuffered()
Returns the number of audio frames currently queued in the audio device buffer.
◆ AudioPlayerGetDesiredBuffered()
| API_EXPORT int32_t AudioPlayerGetDesiredBuffered |
( |
| ) |
|
Returns the configured target number of buffered audio frames.
◆ AudioPlayerPlayFrame()
| API_EXPORT void AudioPlayerPlayFrame |
( |
const uint8_t * |
buf, |
|
|
size_t |
len |
|
) |
| |
Submits a frame of PCM audio to the audio output device.
- Parameters
-
| buf | Interleaved sample data (stereo: L,R,… or surround: FL,FR,C,LFE,SL,SR,…). |
| len | Length of buf in bytes. |
◆ AudioSetAudioComponent()
| void AudioSetAudioComponent |
( |
std::shared_ptr< Ship::Audio > |
audio | ) |
|
◆ GetAudioChannels()
Returns the current audio channel mode (stereo / 5.1 matrix / 5.1 raw).
◆ GetNumAudioChannels()
Returns the number of output channels active on the current audio device (2 or 6).
◆ SetAudioChannels()
Changes the audio channel configuration at runtime.
Reinitialises the audio backend with the new channel mode without requiring a game restart. Stereo and 5.1 surround (matrix or raw) are supported.
- Parameters
-
| channels | New channel mode to apply. |