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

Thread: Discussion about a simple way to change the sample-rate

Threaded View

  1. #1
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Germany NRW

    Discussion about a simple way to change the sample-rate


    i guess, there is a - more or less - simple way to change the samplerate of the audiolibrary at runtime.
    For example, if you use the I2S-Output, i think, it would be sufficient to patch the "timing"-registers (multipliers/dividers) to archive 48KHz.
    - without any changes to the library code -

    Of course, this has several unwanted side-effects, and some things will NOT work.
    But which ?

    For example,
    - the sine-object will work, but with a wrong frequeny. The would be easy to "repair" (call frequency(freq*0.85))
    - mixers will work

    So, which parts will work, which not ? Where are problems ?

    Edit: My reason to ask:
    I re-activated an old project, my webradio, and some stations are using 48KHz. Therey are not usable, at the moment.
    A "hack" like this would allow to play them - without having to patch audio-library sourcecode.
    Last edited by Frank B; 10-27-2016 at 09:26 PM.

Posting Permissions

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