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.06 seconds.

  1. Replies
    111
    Views
    2,560

    Teensyduino doesn't allow errormessages. Only...

    Teensyduino doesn't allow errormessages. Only Serial.prints (with all its disadvantages)
    But, right, play() could at least return an error - an enum or similar.
  2. SD-Pin settings hit us every time with a new...

    SD-Pin settings hit us every time with a new model.. ;)
    Good catch.
    I hope any future model will have the required (and acc. to the standard mandatory) pullups on all data-lines + cmd...
  3. Oops, yes, right. Been confused by all the...

    Oops, yes, right. Been confused by all the different MCUs (not Teensy only)..
  4. Replies
    111
    Views
    2,560

    They probably use a newer header than the...

    They probably use a newer header than the waveplayer supports.
    Microsoft-typical (not sure about the history - i think they just took the apple aiff-header and senseless modified it(?) - as usual...
  5. But as general hints for speed: - Don't make...

    But as general hints for speed:
    - Don't make the array const - this way it will be in RAM and does not have to be read from the flash.
    - Make it a local variable if possible, so that the...
  6. Replies
    111
    Views
    2,560

    What is "DiskIOMB"?

    What is "DiskIOMB"?
  7. Depends... :) ..on how the compilers decides to...

    Depends... :)
    ..on how the compilers decides to translate it.
    If he is out of registers in a more complicated loop, it is of some use not to need an index. Often, it is possible to remove the index...
  8. Replies
    111
    Views
    2,560

    Thanks :) and..it worked all the time (ok,...

    Thanks :)

    and..it worked all the time (ok, till last month when encryption was added... :-)
  9. Also, I'd add a debug-print for all cache...

    Also, I'd add a debug-print for all cache handling (flush, delete, etc), directly inside these funcs that prints an error if address is not 32-alinged (lower bits all == 0) or size is not a 32...
  10. Try the cache-test (by switching it off for a...

    Try the cache-test (by switching it off for a test) again ... behaves it differently? if yes, you found a reason..
  11. Replies
    111
    Views
    2,560

    @wwatson, Thank you for the PR :)

    @wwatson,

    Thank you for the PR :)
  12. Replies
    3
    Views
    103

    I'd try without the PLL. And, the T4 (Which...

    I'd try without the PLL.
    And, the T4 (Which Teensy do you use?) uses exactly 44100Hz. It has its own high precision audio, low jitter PLL.
    MCLK over a dupont may not work. I never had luck with...
  13. Replies
    111
    Views
    2,560

    If you (@wwatson) do a PR, I'll merge it.

    If you (@wwatson) do a PR, I'll merge it.
  14. Replies
    111
    Views
    2,560

    @Paul, yup, this thread is about the aac/mp3/flac...

    @Paul, yup, this thread is about the aac/mp3/flac codecs - has nothing to do with "my" waveplayer.

    I wouldn't merge the codecs to the offcial library. Although it works pretty good and stable...
  15. Replies
    111
    Views
    2,560

    ..and I would porbably do this in...

    ..and I would porbably do this in queue_Data_Transfer() in ehci.cpp

    Are writes not affected?? I guess yes.. so it would be needed for the other direction, too?
  16. Replies
    111
    Views
    2,560

    Is it needed to flush it? If it gets overwritten...

    Is it needed to flush it? If it gets overwritten anyway (by the read), an arm_dcache_delete() would be faster.
  17. Replies
    111
    Views
    2,560

    I hope the sectorBuffer is _always_ aligned?...

    I hope the sectorBuffer is _always_ aligned? Otherwise it will crash the heap in other cases.
    Would probably be needed to check this (and if the size is guraranteed to be a multiple of 32) with an...
  18. Replies
    111
    Views
    2,560

    26784 Is there a case where it is not on the...

    26784

    Is there a case where it is not on the heap?
  19. Replies
    111
    Views
    2,560

    I've fixed FLAC (Tested with 3.6 only - T4 seems...

    I've fixed FLAC (Tested with 3.6 only - T4 seems to be not reliable at the moment?)

    https://github.com/FrankBoesing/Arduino-Teensy-Codec-lib/commit/576d62c4f15da3f80fc5b9ee14332bfae175ccf8
  20. Replies
    14
    Views
    314

    I guess it's a pretty cheap or old one, set to...

    I guess it's a pretty cheap or old one, set to AC.

    @Italian is it set to DC?
    Measure a 1.5 battery - what does it show?
  21. Replies
    111
    Views
    2,560

    @MJS: Indeed, 55 is the BEE interrupt. Cab...

    @MJS: Indeed, 55 is the BEE interrupt. Cab produce problems since there is encryption..
    The reserved interrupt for T4 came later.

    So, that change makes sense.
    Can you do a PR, please?

    (I can...
  22. Replies
    111
    Views
    2,560

    Oh my... If you keep this up, you'll make me...

    Oh my... If you keep this up, you'll make me bring out the Teensy again :)... I hope I can hold off until the weekend...
    My radio works very reliable now (playing 48k 256kbsp AAC stream without...
  23. Replies
    111
    Views
    2,560

    If it works differently with cache than without -...

    If it works differently with cache than without - what reason is there that is not related to the cache?

    I lack the imagination for this conclusion.
    Say an example?
  24. Replies
    111
    Views
    2,560

    I don't know now. I don't use opus on ESP - for...

    I don't know now. I don't use opus on ESP - for Radio streams, AAC and MP3 are enough.
    Opus was a user contribution some month ago.
    I guess it's intended and that line seems to be by the Opus team....
  25. Replies
    111
    Views
    2,560

    Note the codecs just use "RAM". They don't need...

    Note the codecs just use "RAM".
    They don't need to know if it is OCRAM, cached or whatever. It's just heap. Dumb RAM without any needed extras. Works with T3.2.

    BUT: If the malloc fails or the...
  26. Replies
    111
    Views
    2,560

    Ok, noted that... i'll look at this, when I...

    Ok, noted that... i'll look at this, when I connect a Teensy again. Can take some weeks.
  27. Yup, with teensy.

    Yup, with teensy.
  28. From that absolute minimal information nobody can...

    From that absolute minimal information nobody can answer it.
    The code is the same on T4/T4.1.
    Maybe the crystal is a bit off. It gets better when you cool or heat the teensy, it's a crystal...
  29. Replies
    51
    Views
    2,353

    I'm not sure it somehow matters that these old...

    I'm not sure it somehow matters that these old cards work.... if you can afford a Teensy, you can buy a <$10 card.... ;)
    Some of mine have long since ended up in the trash....

    I have ONE Card...
  30. Replies
    18
    Views
    490

    Oops.. do not see any photos. Hm? Ok, maybe a...

    Oops.. do not see any photos. Hm? Ok, maybe a forum or other problem.
    If these pins are aligned, everything should be ok.
  31. There is a great arduino nunchuck library...

    There is a great arduino nunchuck library somewhere. Used it often.
  32. Replies
    18
    Views
    490

    Post a photo

    Post a photo
  33. Replies
    18
    Views
    490

    Just align the pin 0 to the corresponding Teensy...

    Just align the pin 0 to the corresponding Teensy 0-pin. Yes, they can stack...
  34. Replies
    111
    Views
    2,560

    - How often is allocBuffer called? one time, on...

    - How often is allocBuffer called?
    one time, on init or when playing a new file
    - And for what sizes?
    Forgot that... wasn't a problem for the 3.2 - in sum around ~30kB if I remember correctly
    -...
  35. Replies
    18
    Views
    490

    Nope... the pins are printed on the bottom of the...

    Nope... the pins are printed on the bottom of the shield..

    https://www.pjrc.com/store/teensy4_audio_back.jpg
    They correspond to the Teensy pins..

    Paul should probably post a photo how it...
  36. Replies
    111
    Views
    2,560

    Yes, the blocksize is a real showstopper for FLA...

    Yes, the blocksize is a real showstopper for FLA on microcontrollers. The memory usage is ... pervert... :)
    I've added some example files here (Blocksize up to 1024) :...
  37. Ok, make the variables you use volatile. Then it...

    Ok, make the variables you use volatile. Then it should not happen anymore.
  38. Just remove the delay() and the Serial.print....

    Just remove the delay() and the Serial.print.
    Delay() is unpredictable with the short times.

    If a delay is really needed, replace it by delayNanoseconds().
  39. A bad example is this : short...

    A bad example is this :



    short CLIPTOSHORT(int x){
    int sign; /* clip to [-32768, 32767] */
    sign = x >> 31;
    if (sign != (x >> 15)) x = sign ^ ((1 << 15) - 1);
    return (short)x;
    }
  40. Replies
    1
    Views
    137

    Yes, Teensyduino still says it's AVR...

    Yes, Teensyduino still says it's AVR...
  41. GCC is smart enough to do that without ASM.... ...

    GCC is smart enough to do that without ASM....

    Note, the mov and bx is only there because it's a not inlined function.. don't underestimate the compiler. In general, we can assume that he is...
  42. Replies
    111
    Views
    2,560

    Since I'm currently back on topic (ESP), and I...

    Since I'm currently back on topic (ESP), and I also briefly struggled with the -6 and -.9, I can say that this is almost 100% an offset issue. The decoder reads wrong data.
    Whenever it is called,...
  43. Yes, it will not work to just play the audio...

    Yes, it will not work to just play the audio slower.
    If you listen to a motor, it will not change pitch. The time between ignitions changes.
    I could imagine to cut the audio in short pieces (with...
  44. Replies
    111
    Views
    2,560

    It can play from SD, from serial flash (uses the...

    It can play from SD, from serial flash (uses the serial flash library) and from Teensy-Memory (give it a pointer).
    No work has been done to add LittlFS so far.

    I currently only use the ESP32....
  45. Replies
    90
    Views
    7,466

    Yes, there is a capacitor on pin 15 on the...

    Yes, there is a capacitor on pin 15 on the shield.
    You can remove it, it's for the optional potentiometer only.

    See here:
    https://github.com/TeensyUser/doc/wiki/Teensy-40-SPDIF-in-and-Audioshield
  46. The hardware switch can also be a simple...

    The hardware switch can also be a simple transistor for the clock line, which enables/disables the clock for each sensor... but for two sensors onyl, it makes mores ense to just use the Teensys both...
  47. https://forum.pjrc.com/threads/59673-Teensy-3-5-Ro...

    https://forum.pjrc.com/threads/59673-Teensy-3-5-RoHS-compliance
  48. Replies
    90
    Views
    7,466

    The problem is, sometimes the latency is *much*...

    The problem is, sometimes the latency is *much* higher, when the card decides to do some internal operations.

    Some hints:

    - use a large buffer
    - write in Blocks of 4096 Bytes
    - use a fast...
  49. Replies
    6
    Views
    294

    The cpu internally works with a even less voltage...

    The cpu internally works with a even less voltage - it's adjustable, and the teesy core automatically adjusts it with the CPU speed.
  50. You can't.

    You can't.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4