Public Attributes | List of all members
draudio_sound Struct Reference

#include <dr_audio_ancient.h>

Public Attributes

bool isUsingStreamingBuffer
 [Internal Use Only] Keeps track of whether or not a streaming buffer is being used. More...
 
bool markedForDeletion
 
draudio_on_sound_delete_proc onDelete
 [Internal Use Only] the onDelete function. Can be null. More...
 
draudio_on_sound_read_data_proc onRead
 [Internal Use Only] The onRead streaming function. Can be null, in which case streaming will not be used. More...
 
draudio_on_sound_seek_data_proc onSeek
 [Internal Use Only] The onSeek streaming function. Can be null, in which case streaming will not be used. More...
 
draudio_bufferpBuffer
 A pointer to the audio buffer for playback. More...
 
draudio_soundpNextSound
 [Internal Use Only] A pointer to the next sound in the local list. More...
 
draudio_soundpPrevSound
 [Internal Use Only] A pointer ot the previous sound in the local list. More...
 
draudio_playback_state prevPlaybackState
 [Internal Use Only] The state of the buffer's playback at the time the associated world overwrote it. More...
 
draudio_worldpWorld
 A pointer to the world that owns the sound. More...
 

Detailed Description

Definition at line 616 of file porcupine/demo/c/dr_libs/old/dr_audio_ancient.h.

Member Data Documentation

◆ isUsingStreamingBuffer

bool draudio_sound::isUsingStreamingBuffer

[Internal Use Only] Keeps track of whether or not a streaming buffer is being used.

Definition at line 635 of file porcupine/demo/c/dr_libs/old/dr_audio_ancient.h.

◆ markedForDeletion

bool draudio_sound::markedForDeletion

[Internal Use Only] Keeps track of whether or not the sound has been marked for deletion. This is used to ensure onRead and onSeek are never called after the sound has been deleted. This scenario is possible because these functions are called in response to the sound buffer hitting markers which can be slightly delayed due to multi-threading synchronization.

Definition at line 641 of file porcupine/demo/c/dr_libs/old/dr_audio_ancient.h.

◆ onDelete

draudio_on_sound_delete_proc draudio_sound::onDelete

[Internal Use Only] the onDelete function. Can be null.

Definition at line 644 of file porcupine/demo/c/dr_libs/old/dr_audio_ancient.h.

◆ onRead

draudio_on_sound_read_data_proc draudio_sound::onRead

[Internal Use Only] The onRead streaming function. Can be null, in which case streaming will not be used.

Definition at line 647 of file porcupine/demo/c/dr_libs/old/dr_audio_ancient.h.

◆ onSeek

draudio_on_sound_seek_data_proc draudio_sound::onSeek

[Internal Use Only] The onSeek streaming function. Can be null, in which case streaming will not be used.

Definition at line 650 of file porcupine/demo/c/dr_libs/old/dr_audio_ancient.h.

◆ pBuffer

draudio_buffer * draudio_sound::pBuffer

A pointer to the audio buffer for playback.

Definition at line 622 of file porcupine/demo/c/dr_libs/old/dr_audio_ancient.h.

◆ pNextSound

draudio_sound * draudio_sound::pNextSound

[Internal Use Only] A pointer to the next sound in the local list.

Definition at line 629 of file porcupine/demo/c/dr_libs/old/dr_audio_ancient.h.

◆ pPrevSound

draudio_sound * draudio_sound::pPrevSound

[Internal Use Only] A pointer ot the previous sound in the local list.

Definition at line 632 of file porcupine/demo/c/dr_libs/old/dr_audio_ancient.h.

◆ prevPlaybackState

draudio_playback_state draudio_sound::prevPlaybackState

[Internal Use Only] The state of the buffer's playback at the time the associated world overwrote it.

Definition at line 626 of file porcupine/demo/c/dr_libs/old/dr_audio_ancient.h.

◆ pWorld

draudio_world * draudio_sound::pWorld

A pointer to the world that owns the sound.

Definition at line 619 of file porcupine/demo/c/dr_libs/old/dr_audio_ancient.h.


The documentation for this struct was generated from the following file:


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:19