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

Thread: Teensy 4.0 44.1k or 44.117k for sample rate

  1. #1
    Member
    Join Date
    Apr 2020
    Location
    Guelph Ontario Canada
    Posts
    66

    Teensy 4.0 44.1k or 44.117k for sample rate

    I'm using Iowa hills Hilbert filter designer ..in the designer its asking for sampling frequency ..dies the teensy 4.0 run at 44.1 or 44.117 kHz..I feel stupid asking this ..but I was unable to find out ....

  2. #2
    Senior Member vjmuzik's Avatar
    Join Date
    Apr 2017
    Posts
    641
    It is 44.1k, you can find it here: https://github.com/PaulStoffregen/co.../AudioStream.h

    Code:
     #define AUDIO_SAMPLE_RATE_EXACT 44100.0f

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,705
    Yup. Teensy 4.x has a dedicated PLL with high resolution config, so it can create exactly 44.1 kHz.

    The older Teensy 3.x board ran at 44.117647 kHz (or actually 48 MHz / 1088) because they lack a PLL for audio, so they're limited to creating the audio clock by integer division of the various system clocks.

  4. #4
    Member
    Join Date
    Apr 2020
    Location
    Guelph Ontario Canada
    Posts
    66
    Thank you very much ..I was getting confused across models ..what does the teesy 4 default to naturally if you don't define it ? ?.and question #2 ..does changing the above parameter allow you to step up the sampling rate to say 48k or 96k ?

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,705
    Default is 44.1 kHz.

    If you change that define, most of the library will adapt. But some parts, especially USB and WAV file playing, have other dependency on 44100 Hz which that define doesn't change.

  6. #6
    Member
    Join Date
    Apr 2020
    Location
    Guelph Ontario Canada
    Posts
    66
    Thanks for the info ...I appreciate the response.?now to go and fix my filters ..lol

Tags for this Thread

Posting Permissions

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