-
Notifications
You must be signed in to change notification settings - Fork 13
fplAudioSettings Struct Reference
Stores audio settings, such as format, device info, callbacks, backend, etc. More...
#include <final_platform_layer.h>
| Type | Name |
|---|---|
| fplAudioBackendType |
backend The targeted backend. |
| fpl_audio_client_read_callback * |
clientReadCallback The callback for retrieving audio data from the client. |
| void * |
clientUserData User data pointer for client read callback. |
| fpl_b32 |
manualLoad Manual loading the audio system by fplAudioInit() and unload using fplAudioRelease(). |
| fplSpecificAudioSettings |
specific Specific settings. |
| fpl_b32 |
startAuto Start playing of audio samples after platform initialization automatically. |
| fpl_b32 |
stopAuto Stop playing of audio samples before platform release automatically. |
| fplAudioDeviceInfo |
targetDevice The target device. |
| fplAudioFormat |
targetFormat The target format. |
Stores audio settings, such as format, device info, callbacks, backend, etc.
The targetFormat field describes the desired audio format. During fplPlatformInit / fplAudioInit the platform probes backends in a tier-based order, keeping sample rate sacred until the very last tier:
- Exact match: (sampleRate, channels, type).
- Sample rate + channels match, type relaxed against the fallback type table.
- Sample rate + type match, channels relaxed against the fallback channels table.
- Sample rate match only, channels and type relaxed.
- Full fallback: rate, channels and type all relaxed.
- Backend-native: every backend is offered a blank format and may pick whatever its own internal default is (e.g. OSS uses /dev/dsp's reported capabilities). This is the very-last resort when no tier above produced a match.
Definition at line 6461 of file final_platform_layer.h.
fplAudioBackendType fplAudioSettings::backendThe targeted backend.
Definition at line 6473 of file final_platform_layer.h.
fpl_audio_client_read_callback* fplAudioSettings::clientReadCallbackThe callback for retrieving audio data from the client.
Definition at line 6469 of file final_platform_layer.h.
void* fplAudioSettings::clientUserDataUser data pointer for client read callback.
Definition at line 6471 of file final_platform_layer.h.
fpl_b32 fplAudioSettings::manualLoadManual loading the audio system by fplAudioInit() and unload using fplAudioRelease().
Definition at line 6479 of file final_platform_layer.h.
fplSpecificAudioSettings fplAudioSettings::specificSpecific settings.
Definition at line 6467 of file final_platform_layer.h.
fpl_b32 fplAudioSettings::startAutoStart playing of audio samples after platform initialization automatically.
Definition at line 6475 of file final_platform_layer.h.
fpl_b32 fplAudioSettings::stopAutoStop playing of audio samples before platform release automatically.
Definition at line 6477 of file final_platform_layer.h.
fplAudioDeviceInfo fplAudioSettings::targetDeviceThe target device.
Definition at line 6465 of file final_platform_layer.h.
fplAudioFormat fplAudioSettings::targetFormatThe target format.
Definition at line 6463 of file final_platform_layer.h.
The documentation for this struct was generated from the following file:
- Assertion & Debug
- Atomic operations
- Audio functions
- Clipboard functions
- Console functions
- Constants
- Display/Monitor functions
- Dynamic library loading
- Error Handling
- Files/IO functions
- Function macros
- Hardware Infos
- Input types and functions
- Localization functions
- Logging
- Memory Macros
- Memory functions
- Operating system Infos
- Path functions
- Platform functions
- Session Infos
- Settings & Configurations
- Storage class identifiers
- String functions
- Threading and synchronizations routines
- Timing functions
- Video functions
- Window events
- Window functions
- fplARMCPUCapabilities
- fplAudioChannelMap
- fplAudioDeviceID
- fplAudioDeviceInfo
- fplAudioFormat
- fplAudioSettings
- fplColor32
- fplConditionVariable
- fplConsoleSettings
- fplCPUCapabilities
- fplCPUIDLeaf
- fplDateTime
- fplDateTimeCreationResult
- fplDateTimeResult
- fplDisplayInfo
- fplDisplayMode
- fplDynamicLibraryHandle
- fplEndianess
- fplEvent
- fplFileEntry
- fplFileHandle
- fplFilePermissions
- fplFileTimeStamps
- fplGamepadButton
- fplGamepadData
- fplGamepadEvent
- fplGamepadInfo
- fplGamepadInputBinding
- fplGamepadMapping
- fplGamepadSettings
- fplGamepadState
- fplGamepadStates
- fplGraphicsApiSettings
- fplImageSource
- fplInputBackendMask
- fplInputBackendSupport
- fplInputDevice
- fplInputDeviceGuid
- fplInputSettings
- fplInternalConditionVariable
- fplInternalDynamicLibraryHandle
- fplInternalFileEntryHandle
- fplInternalFileHandle
- fplInternalFileRootInfo
- fplInternalMutexHandle
- fplInternalSemaphoreHandle
- fplInternalSignalHandle
- fplInternalThreadHandle
- fplKeyboardEvent
- fplKeyboardState
- fplLogSettings
- fplLogWriter
- fplLogWriterConsole
- fplLogWriterCustom
- fplMemoryAllocationSettings
- fplMemoryBlock
- fplMemoryInfos
- fplMemorySettings
- fplMouseEvent
- fplMouseState
- fplMutexHandle
- fplOpenGLSettings
- fplOSVersionInfos
- fplSemaphoreHandle
- fplSettings
- fplSignalHandle
- fplSpecificAudioSettings
- fplThreadHandle
- fplThreadParameters
- fplTimestamp
- fplVersionInfo
- fplVideoBackBuffer
- fplVideoRect
- fplVideoRequirements
- fplVideoRequirementsVulkan
- fplVideoSettings
- fplVideoSurface
- fplVideoSurfaceOpenGL
- fplVideoSurfaceVulkan
- fplVideoWindow
- fplVulkanSettings
- fplWindowCallbacks
- fplWindowDropFiles
- fplWindowEvent
- fplWindowPosition
- fplWindowSettings
- fplWindowSize
- fplX86CPUCapabilities