aboutsummaryrefslogtreecommitdiff
path: root/include/oboe/AudioStreamBuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/oboe/AudioStreamBuilder.h')
-rw-r--r--include/oboe/AudioStreamBuilder.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/oboe/AudioStreamBuilder.h b/include/oboe/AudioStreamBuilder.h
index d63578c3..de9c6069 100644
--- a/include/oboe/AudioStreamBuilder.h
+++ b/include/oboe/AudioStreamBuilder.h
@@ -75,6 +75,13 @@ public:
}
/**
+ * @deprecated use `setFramesPerDataCallback` instead.
+ */
+ AudioStreamBuilder *setFramesPerCallback(int framesPerCallback) {
+ return setFramesPerDataCallback(framesPerCallback);
+ }
+
+ /**
* Request a specific number of frames for the data callback.
*
* Default is kUnspecified. If the value is unspecified then
@@ -88,7 +95,7 @@ public:
* @param framesPerCallback
* @return pointer to the builder so calls can be chained
*/
- AudioStreamBuilder *setFramesPerCallback(int framesPerCallback) {
+ AudioStreamBuilder *setFramesPerDataCallback(int framesPerCallback) {
mFramesPerCallback = framesPerCallback;
return this;
}