Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: extend Queue object for Teensy 4.0 to more blocks

  1. #1
    Senior Member DD4WH's Avatar
    Join Date
    Oct 2015
    Location
    Central Europe
    Posts
    516

    extend Queue object for Teensy 4.0 to more blocks

    There was a need for more audio blocks to be queued in my Teensy 4.0 SDR project in order to use larger FFT sizes for steeper filtering [I needed 64 blocks of 128 samples at each time for processing].

    So I modified:

    record_queue.h and record_queue.cpp in the audio lib which have the hard-coded restriction of 53 blocks.

    Would it make sense to increase the number of blocks permanently in the next version of Teensyduino for the Teensy 4.0 ? Memory is not a serious issue for the T4.0 with 64 blocks. [AFAIK the AudioMemory uses DMAMEM in T4 ?]

    If yes, I could try to do a pull-request (if my git skills allow that, not sure . . .)

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,943
    Quote Originally Posted by DD4WH View Post
    There was a need for more audio blocks to be queued in my Teensy 4.0 SDR project in order to use larger FFT sizes for steeper filtering [I needed 64 blocks of 128 samples at each time for processing].

    So I modified:

    record_queue.h and record_queue.cpp in the audio lib which have the hard-coded restriction of 53 blocks.

    Would it make sense to increase the number of blocks permanently in the next version of Teensyduino for the Teensy 4.0 ? Memory is not a serious issue for the T4.0 with 64 blocks. [AFAIK the AudioMemory uses DMAMEM in T4 ?]

    If yes, I could try to do a pull-request (if my git skills allow that, not sure . . .)
    Yes, definitely!

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,135
    I've committed larger queue limits on github. It will be in 1.49-beta4.

    https://github.com/PaulStoffregen/Au...f0dcc62a95d2fa

  4. #4
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,478
    As I usually use most ram for data queue, I modified recordQueue to use Template arguments and include class implementation in an include file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •