chipaudette
Well-known member
Is it possible to change the size of the audio blocks?
I see that their size seems to be defined by the AUDIO_BLOCK_SIZE. After some poking around, I see that this variable/macro is defined in the Teensy3 core...
https://github.com/PaulStoffregen/c...560d7a008ccb150b0ec603a/teensy3/AudioStream.h
I see that there are two values defined here...one for 128 (the default for most folks?) and 64. Can I force it to use the 64 instead of the 128? or, is there any way for me to set it to some other value (like 32 or 256)?
I don't need all of the functions in the Audio library to work when I change the block size. My goal is simply to get the samples from the Audio Adapter at my preferred block size and to push samples to the Audio Adapter at my preferred block size. If I break all of the other functions, that's fine. If any of the functions still happen to work, I'd feel lucky.
Can I change the block size? How?
Thanks,
Chip
I see that their size seems to be defined by the AUDIO_BLOCK_SIZE. After some poking around, I see that this variable/macro is defined in the Teensy3 core...
https://github.com/PaulStoffregen/c...560d7a008ccb150b0ec603a/teensy3/AudioStream.h
I see that there are two values defined here...one for 128 (the default for most folks?) and 64. Can I force it to use the 64 instead of the 128? or, is there any way for me to set it to some other value (like 32 or 256)?
I don't need all of the functions in the Audio library to work when I change the block size. My goal is simply to get the samples from the Audio Adapter at my preferred block size and to push samples to the Audio Adapter at my preferred block size. If I break all of the other functions, that's fine. If any of the functions still happen to work, I'd feel lucky.
Can I change the block size? How?
Thanks,
Chip