summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorRay <[email protected]>2022-03-30 20:13:02 +0200
committerRay <[email protected]>2022-03-30 20:13:02 +0200
commit1612ba63ab66b2f875fe6aca70e5fabea6b578ca (patch)
treee9aad3e8d84c5f53dff0610de7bd7c729b89ef23 /src/raylib.h
parent90fc7c0376f39d7b19d632e1d69dec715ec3f2a8 (diff)
downloadraylib-1612ba63ab66b2f875fe6aca70e5fabea6b578ca.tar.gz
raylib-1612ba63ab66b2f875fe6aca70e5fabea6b578ca.zip
ADDED: Audio stream processors support -WIP- #2212
This feature is still under consideration/testing and it doesn't work properly, at least the Delay Effect processor.
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 1add734b..7cb19927 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -428,10 +428,12 @@ typedef struct Wave {
// Opaque structs declaration
// NOTE: Actual structs are defined internally in raudio module
typedef struct rAudioBuffer rAudioBuffer;
+typedef struct rAudioProcessor rAudioProcessor;
// AudioStream, custom audio stream
typedef struct AudioStream {
rAudioBuffer *buffer; // Pointer to internal data used by the audio system
+ rAudioProcessor *processor; // Pointer to internal data processor, useful for audio effects
unsigned int sampleRate; // Frequency (samples per second)
unsigned int sampleSize; // Bit depth (bits per sample): 8, 16, 32 (24 not supported)
@@ -1543,6 +1545,9 @@ RLAPI void SetAudioStreamPan(AudioStream stream, float pan); // Set pan
RLAPI void SetAudioStreamBufferSizeDefault(int size); // Default size for new audio streams
RLAPI void SetAudioStreamCallback(AudioStream stream, AudioCallback callback); // Audio thread callback to request new data
+RLAPI void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor);
+RLAPI void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processor);
+
#if defined(__cplusplus)
}
#endif