frames per call back #1692
Closed
MohamedkhGhonim
started this conversation in
Ideas
Replies: 3 comments
-
You should only set the data frames per call back when you specifically
need a particular value. An example might be when you're doing an FFT and
you need exactly 512 frames. If you don't need an exact value then it is
much better to just let Oboe decide on the callback size.
…On Wed, Jan 4, 2023, 02:22 MohamedkhGhonim ***@***.***> wrote:
is there any general form to set the frame per call back to the builder I
noticed that when the sample rate is 44100 or 48000 the frame per call back
be 1024 and for sample rate 22050 it is a 2048, what is the appropriate
number of frames per call back that can work for any sample rate ?
—
Reply to this email directly, view it on GitHub
<#1692>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHPU2KHY5AKOJ46FE7TYZLWQVTPNANCNFSM6AAAAAATQXMMT4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
If there is any doc or sample for that ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
We added a doc: https://google.github.io/oboe/classoboe_1_1_audio_stream_builder.html#aef61b952f2e4cf1e0d77bcfd45dde623 Most sample code does NOT call setFramesPerDataCallback(). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is there any general form to set the frame per call back to the builder I noticed that when the sample rate is 44100 or 48000 the frame per call back be 1024 and for sample rate 22050 it is a 2048, what is the appropriate number of frames per call back that can work for any sample rate ?
Beta Was this translation helpful? Give feedback.
All reactions