libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
audiobridge.h
Go to the documentation of this file.
1#pragma once
2
3#include "stdint.h"
4#include "stddef.h"
5#include "ship/Api.h"
7
8#ifdef __cplusplus
9#include <memory>
10namespace Ship {
11class Audio;
12}
13void AudioSetAudioComponent(std::shared_ptr<Ship::Audio> audio);
14std::shared_ptr<Ship::Audio> AudioGetAudioComponent();
15extern "C" {
16#endif
17
20
23
26
29
36API_EXPORT void AudioPlayerPlayFrame(const uint8_t* buf, size_t len);
37
47
48#ifdef __cplusplus
49};
50#endif
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