Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: Frank B

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    1
    Views
    31

    If that's the case, I'd assume it is always 24...

    If that's the case, I'd assume it is always 24 Bit , and the audio library just takes the upper 16. So you need your own code.
  2. No. "At least one non-USB input or output object...

    No.
    "At least one non-USB input or output object must be present for the entire library to update."
    For example add an I2S-Output object. No "AudioConnection" (Patchcord) is needed.
  3. Replies
    17
    Views
    181

    I've used it, too (on Teensy 4).

    I've used it, too (on Teensy 4).
  4. Replies
    10
    Views
    553

    Hm, the Teensy 4 uses exactly 44100Hz Samplerate,...

    Hm, the Teensy 4 uses exactly 44100Hz Samplerate, so the problem is different from the Teensy 3.x USB-Audio problems.
    Seems to be related to USB-internals.. I can't help with that :(
  5. Replies
    10
    Views
    553

    Teensy 3 or Teensy 4?

    Teensy 3 or Teensy 4?
  6. Replies
    17
    Views
    181

    Maybe this helps? : ...

    Maybe this helps? : https://github.com/cpetrich/counterfeit_DS18B20
  7. No, you only need to modify update() in...

    No, you only need to modify update() in play_sd_raw
    For example if you (easiest case) want double speed, just skip every 2.nd sample.
    If you want smaller steps.. well... use smaller steps.
    You...
  8. Replies
    10
    Views
    553

    Yes, please overwrite input_i2s.cpp from the...

    Yes, please overwrite input_i2s.cpp from the audio library with this version: https://raw.githubusercontent.com/PaulStoffregen/Audio/master/input_i2s.cpp
  9. Not out of the box. You would have to write code...

    Not out of the box. You would have to write code to do that. The playFlashRaw object does not support it.
  10. May? Never ever... It will calm down a little...

    May? Never ever...
    It will calm down a little bit, but we will have fun til next year.
    I really hope, some things will be different then (->in 2 years), and money$$ will rule less.
  11. Thread: I2C woes -

    by Frank B
    Replies
    14
    Views
    251

    Can you show a photo?

    Can you show a photo?
  12. Replies
    10
    Views
    553

    Please remove the output_pwm for T4 - this needs...

    Please remove the output_pwm for T4 - this needs some work and leads to a compilation error.
  13. Stay cool, no need to hurry. Not related:...

    Stay cool, no need to hurry.

    Not related: Maybe, in a beta for 1.5x (and only in the beta), you can add -Wdouble-promotion ?

    Thanks, Frank.


    @Others: If you _really_ need it, there is a...
  14. That looks much better :) Thank you very much. ...

    That looks much better :) Thank you very much.

    Unfortunately, it does not help me much. I'm debugging a really very very large program, which uses a large amount of all kinds of trigonometry...
  15. He's one of thousands. I can't see any reason to...

    He's one of thousands. I can't see any reason to mention politicians or prominent people.
  16. Is there a way to fix this without installing a...

    Is there a way to fix this without installing a new compiler?
  17. Replies
    82
    Views
    4,797

    @Paul:...

    @Paul: https://forum.pjrc.com/threads/60344-sin-sinf-cos-cosf-strange-timing-results-on-teensy-4
    @NuWaveIT: Oh, forgot ... I'll do that in the next days.
  18. ...to answer my question... it's the ancient...

    ...to answer my question... it's the ancient compiler (or libc)
    With GCC 9, all is correct.
  19. sin, sinf, cos, cosf - strange timing results on teensy 4

    extern "C"
    {
    void sincosf(float err, float *s, float *c);
    }

    void setup() {
    long m;
    float res;

    res = 0;
  20. Replies
    17
    Views
    234

    Good idea :) You could do it like in #2, with...

    Good idea :)

    You could do it like in #2, with a unused GPIO :)
  21. Replies
    17
    Views
    234

    So you may need to use GPT or RTC to keep...

    So you may need to use GPT or RTC to keep millis() running.
    But I wonder for what that would be needed... :)
  22. Replies
    17
    Views
    234

    Doesn't it wake with the GPIO Interrupt? (#P2)...

    Doesn't it wake with the GPIO Interrupt? (#P2)
    What is "Other wake-up Source" ?
  23. Replies
    17
    Views
    234

    USB activity can wake him up, so there's probably...

    USB activity can wake him up, so there's probably a way to do this with every interrupt... you could use a timer interrupt.
    I had this on my todo list, but I didn't feel like looking for it yet.
  24. Replies
    17
    Views
    234

    This doc does not mention how to configure...

    This doc does not mention how to configure interrupts to wakeup the teensy.
  25. Replies
    17
    Views
    234

    Yes, the SYSTICK does not wake the CPU, on IMXRT....

    Yes, the SYSTICK does not wake the CPU, on IMXRT. NXP designed it this way.
    Other interrupts can do that, and thats seems to be configurable(?) - It must be somewhere in the Bible (NXP RefManual) or...
  26. Replies
    28
    Views
    280

    Your might want to look at the queues...

    Your might want to look at the queues (Record+play queue) - With the help of these you can add your own code easily. If you want higher SampleFrequency than 44.100Hz (but really - you don't need...
  27. Replies
    28
    Views
    280

    YOu dont need that samplerate - and even if you...

    YOu dont need that samplerate - and even if you needed it, there's the PCM1808(ADC) / PCM5102 (DAC) for example - I'm using them for 256kHz samplerate. Great Audio quality.
    There are no limits. You...
  28. Replies
    28
    Views
    280

    Don't know - maybe the others can answer this....

    Don't know - maybe the others can answer this.
    This board has no ADC- Don't you need a ADC, too?

    Why not use the PJRC Audio shield? it has ADC, DAC, Mic input (mono), line-in (stereo) , Headphone...
  29. Replies
    28
    Views
    280

    With the audio sibrary, 44.1kHz 16Bit stereo is...

    With the audio sibrary, 44.1kHz 16Bit stereo is standard/default. Every codec can do that, the T3.2 can do that. It can do 96kHz stereo if you want. May be a little much for hearing aid...

    I'm...
  30. Replies
    28
    Views
    280

    I still don't get why you don't use I2S ...

    I still don't get why you don't use I2S ...
  31. Replies
    3
    Views
    93

    In your 1st post is a warning: warning:...

    In your 1st post is a warning:


    warning: cannot find entry symbol ImageVectorTable; not setting start address

    ..I think it's important to fix that. It will crash immedately without...
  32. Replies
    28
    Views
    280

    Hm, I need to look at the datasheet - maybe it...

    Hm, I need to look at the datasheet - maybe it takes so long to reach the new dac value? I2C DACs are not made for audio frequencies.
    Even the BUS is too slow. 44 (khz) * (16 Bit) = ?
  33. Replies
    28
    Views
    280

    For pure speech, 8 Bit and (even less! try 5...)...

    For pure speech, 8 Bit and (even less! try 5...) are enough.
    (Yes, all "audiophiles" and "experts" will hit me now.. they never tried that ;-) )
  34. Replies
    28
    Views
    280

    I've never heard of anyone who used a I2C DAC for...

    I've never heard of anyone who used a I2C DAC for audio...
    Do yourself a favor and use a well known shield which is built for audio. It has a microphone- and headphone-connector, too (and it's very...
  35. Replies
    45
    Views
    7,807

    Yes, when I wrote "Teensy 4" I really meant...

    Yes, when I wrote "Teensy 4" I really meant "Teensy 4.x" :)
    I'd use a FIFO for the data - something like the Audio Libs "Audioblocks", with inbuilt queue. And larger blocks.
    DD4WH if I read your...
  36. Kurt, as I am currently have a ILI941 set up,...

    Kurt, as I am currently have a ILI941 set up, i'll test it. Don't know if I have time tomorrow :-( Now is too late.
    It would be great if it works :)
  37. From here (German text)...

    From here (German text) https://www.n-tv.de/panorama/Frankreichs-Behoerden-warnen-vor-Chloroquin-article21681668.html:


    Translated with www.DeepL.com/Translator (free version)
  38. Replies
    6
    Views
    247

    I wouldn't say samplerate conversion is...

    I wouldn't say samplerate conversion is desirable. It may can be used for some special cases, ok.
    However, with a general switch to 48kHz it would'nt be needed. Its easy to convert files on the PC....
  39. Replies
    45
    Views
    7,807

    No, double is slower than float! I don't know...

    No, double is slower than float!
    I don't know the CMSIS very good - if you say it does not support doubles, it may be easier not to use them.
    Edit: You have mail.
  40. Replies
    45
    Views
    7,807

    I'd say we can concentrate on the Teensy 4 only -...

    I'd say we can concentrate on the Teensy 4 only - There is a Teensy 4.1 with more pins & features in the pipeline. If I understand Paul correctly it's a matter of weeks/months.
    This way would'nt...
  41. Replies
    45
    Views
    7,807

    ..as i dont see much chance for this proposal...

    ..as i dont see much chance for this proposal here, i need something to play with :)
    I can do a "SDR specialized audio-lib" - or better "SDR lib" with in-and outputs only as a first step.
    Then,...
  42. Replies
    45
    Views
    7,807

    Yes, on different I2S interfaces (or mqs as...

    Yes, on different I2S interfaces (or mqs as output, maybe )
    If you say that this would be useful, I could take a closer look and see what exactly is possible.
    If it makes any sense, I can tune an...
  43. c will never be 11 in this loop... :) But the...

    c will never be 11 in this loop... :)
    But the compiler is smart and does know this. Internally, it will ignore the
    if (c != 11)
  44. Replies
    36
    Views
    5,325

    No it isn't.

    No it isn't.
  45. Replies
    6
    Views
    247

    -Because it would be a clean cut. -It does not...

    -Because it would be a clean cut.
    -It does not have to be backwards compatible. The old version will still be there, old programs will still compile without any change.
    Edit: - we can drop support...
  46. There is a #define TEENSYDUINO=1xx Or take a...

    There is a #define TEENSYDUINO=1xx

    Or take a look at boards.txt there are entries like "teensy40.build.flags.def=.... -DTEENSYDUINO=1xx"

    Or start Arduino and click "Help"
  47. Replies
    6
    Views
    247

    Time for a new Audiolibrary

    I'd like to propose a new Audiolibrary.
    In a way that the old still exists, but marked as "deprecated".

    The new name could be <Audio48> or similar, and more or less a copy of the old, with some...
  48. Replies
    14
    Views
    241

    Yes, I'm sure about this. 1. there is no queue,...

    Yes, I'm sure about this. 1. there is no queue, only a flag. 2. where should the new data be stored? magical memory/ram from deep space? :-)
    You're delaying the interrupt. If it misses one call...
  49. Replies
    9
    Views
    223

    Please keep in mind that such "optimizations" are...

    Please keep in mind that such "optimizations" are not always useful, especially for beginners.
    It can save a few bytes, that's all (if the compiler does not decide to unroll the loop). You have...
  50. Replies
    10
    Views
    209

    Wow that was fast! Thank you! I wonder what...

    Wow that was fast! Thank you!

    I wonder what this bit is for. It exists, so it must have some effect somewhere.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4