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

Search:

Type: Posts; User: h4yn0nnym0u5e

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Hmmm ... I don't have any experience of...

    Hmmm ... I don't have any experience of PlatformIO, I've been working using Windows and the Arduino IDE to ensure things work for the majority audience. I assume...

    You should only need to replace...
  2. Have you tried removing the LCD update calls and...

    Have you tried removing the LCD update calls and "flying blind" to see if the problems go away? Looking at the library, it seems it's a pretty time-consuming job to update it, which would at least...
  3. The sheer convenience and size of SD cards is why...

    The sheer convenience and size of SD cards is why I'm pursuing that route, though there's definitely a way to go yet. Even before I start attacking recording, my (externally generated) suite of test...
  4. I've made the buffer size configurable at...

    I've made the buffer size configurable at run-time, per object. The code reads half of the buffer at a time, when there's space available, and I'd strongly recommend making the buffer a multiple of...
  5. Good news, glad I could help!

    Good news, glad I could help!
  6. I’m currently working on streaming off the T4.1...

    I’m currently working on streaming off the T4.1 SD card, using internal heap or PSRAM as a buffer. So far I’m comfortably achieving 16 channels at 16-bit 44kHz from standard mono WAV files, off...
  7. I tracked down the GitHub repo, and it looks a...

    I tracked down the GitHub repo, and it looks a bit like a student project, lots in there which smells of inexperience! I also can’t see how the part you’ve borrowed could ever have worked, though I...
  8. Replies
    5
    Views
    260

    I've played briefly with S/PDIF on a Teensy 4.1....

    I've played briefly with S/PDIF on a Teensy 4.1. I received audio generated by a Teensy 3.2, connected electrically (3.2 pin 22 to 4.1 pin 15); and output from pin 14, via a TOSLINK transmitter, to a...
  9. As noted in #2 above that's exactly the problem -...

    As noted in #2 above that's exactly the problem - AudioEffectEnvelope (and pretty much all audio library classes) inherits from AudioStream.

    The documentation already specifies that...
  10. Yup ... change your calls to AudioEffectEnvelope...

    Yup ... change your calls to AudioEffectEnvelope functions to use float values for the parameters, so for example env2.release(0.0f).

    You've passed an integer to the function, and as the error...
  11. Replies
    39
    Views
    2,000

    Sticky: I had a request via PM for an example of how to...

    I had a request via PM for an example of how to use the new Dynamic AudioConnection feature introduced in TD 1.57. I've done PR#441 for eventual inclusion in some future Teensyduino release, and have...
  12. Replies
    9
    Views
    132

    I was still in error - divide by 256, each sample...

    I was still in error - divide by 256, each sample is 2 bytes ... 896 is my final offer!
  13. Replies
    9
    Views
    132

    Please note I made an error initially - 229376 is...

    Please note I made an error initially - 229376 is the memory in bytes, not blocks: I edited my post accordingly. Also, it looks as if you can allocate more than that and the memory will be used, but...
  14. Replies
    9
    Views
    132

    896...

    896 (see line 36)
  15. Some minor fixes are in PR#19...

    Some minor fixes are in PR#19, opened June 1st and just updated to remove some warnings. The author doesn't appear to have been active recently, so if you want them you may just have to grab them...
  16. This isn't quite correct, and could cause...

    This isn't quite correct, and could cause problems...

    You are passing the result of a call to the function entry.name(), which returns a const char*: this tells you that you must not attempt to...
  17. Replies
    21
    Views
    645

    I can't 100% see your wiring, but it looks as if...

    I can't 100% see your wiring, but it looks as if you only have one IS input wired; if I'm reading the library code right, your second audio adaptor needs its DOUT / pin 13 wired to the T4.1 pin 6,...
  18. Excellent news! You’re very welcome - that’s one...

    Excellent news! You’re very welcome - that’s one of the things a forum is for…
  19. The boilerplate SD startup code in most of the...

    The boilerplate SD startup code in most of the demos (and which you've essentially copied) is poorly conceived, in that it gives the card just one chance to start, then whinges about it forever. I...
  20. I don't use Platformio myself, so no real idea,...

    I don't use Platformio myself, so no real idea, but your suggestion of installing the Arduino beta then copying the required change across sounds viable. The only changed file you'd need to fix your...
  21. Replies
    21
    Views
    645

    Yes, sorry, was lazy with my editing the quoted...

    Yes, sorry, was lazy with my editing the quoted message!
  22. Which version of Teensyduino are you using?...

    Which version of Teensyduino are you using? There’s a fix for this issue in 1.57 beta 3.

    Pro tip: using th code tags (# button) will make your code more readable on the forum.
  23. Replies
    99
    Views
    2,718

    Looking at the AudioPlaySdWav code (which is...

    Looking at the AudioPlaySdWav code (which is deeply nasty), it looks as if it may require an audio interrupt to fire after a .play(), before .isPlaying() becomes true. A crude fix might be putting a...
  24. Replies
    21
    Views
    645

    I think there's something slightly screwy with...

    I think there's something slightly screwy with your maths here - each IS out gives two channels, so you can have 4x2 on I2S1 and another 1x2 on I2S2 for an easy-ish maximum of 10 output channels.
    ...
  25. Replies
    8
    Views
    302

    Great news it works! Squeal ... not so good. I've...

    Great news it works! Squeal ... not so good. I've used much longer wires (~20cm) for quick tests, but not connecting to anything much. Could be a ground loop or similar: I'm guessing the mixer is...
  26. Replies
    8
    Views
    302

    You also need the IC control pins (18 and 19)...

    You also need the IC control pins (18 and 19) connected, or the sgtl5000_1 commands won't work. I also seem to recall you need both the Gnd pins wired, not 100% sure about that.
  27. Replies
    14
    Views
    532

    Agree the Teensy 4.1 renders some of the rev D...

    Agree the Teensy 4.1 renders some of the rev D audio board redundant, but it's all useful for those who prefer to use the Teensy 4.0 (for size reasons etc.), and I guess it doesn't make sense for...
  28. Replies
    14
    Views
    532

    This thread...

    This thread might be of interest. You can fit a couple of PSRAM chips to the Teensy 4.1 and another to the audio board, which gives you a total of 4.75 minutes of delay (not all in one lump, though)....
  29. Replies
    6
    Views
    381

    Great! Simple solution, it's just knowing where...

    Great! Simple solution, it's just knowing where to look... also it's brought to light an error in the Audio Shield documentation, which I can

    It would be good if you could share your design on...
  30. Replies
    6
    Views
    381

    For sure, remove the call to i2s1.begin() -...

    For sure, remove the call to i2s1.begin() - thats a killer! You also dont need to connect() the patch cords or begin() the SD wave player object, though I think those are harmless.

    That should...
  31. Enabling control of Audio Shield using different IC busses

    Hi folks

    I've put in PR #439 for an update I've done to enable use of any available TwoWire-based IC bus for control of a PJRC audio shield, using AudioControlSGTL5000. You'll obviously have to...
  32. I've now also had a try at pushing all the audio...

    I've now also had a try at pushing all the audio I/O initialisation code into FLASHMEM. However, it only saves just over 8k if you have one of everything (which isn't possible anyhow), so I don't...
  33. So many pubs have closed ... we used to walk...

    So many pubs have closed ... we used to walk across the cemetery to one in Gwydir Street, don't recall which one. Don't think Clive ever had occasion to do business with Laserpoint.

    Laserium at...
  34. That's teamwork, that is... Laser Point (or...

    That's teamwork, that is...
    Laser Point (or Laserpoint) does ring a vague bell, don't know why. I was working for Sinclair Research from 1983 to 1986, in Willis Road then Milton Hall. It's a small...
  35. TheHermit for the WIN! Woo, as I believe the...

    TheHermit for the WIN! Woo, as I believe the Young Folk are fond of saying, hoo.

    Thanks for doing that testing, helps build at least my confidence that we're getting somewhere.
  36. Ah, OK. Gotcha. I had another look ... and...

    Ah, OK. Gotcha.

    I had another look ... and this sprang out at me (lines 31-33 of knobby.ino):

    const int redPin = 2;
    const int greenPin = 3;
    const int bluePin = 4;Uh-oh, I thought. Changed...
  37. Um ... loaded it up, and I can't find a DAC...

    Um ... loaded it up, and I can't find a DAC object in your design ... am I missing something?
  38. PaulS posted the links in...

    PaulS posted the links in https://forum.pjrc.com/threads/70409-Teensyduino-1-57-Beta-2 - the Announcements category tend to be where the bleeding edge stuff is linked from.
  39. OK, that's fine. I think the results are all over...

    OK, that's fine. I think the results are all over the shop anyway, so changes on a like-for-like test are pretty much expected. The hope is that with 1.57b2 everything will pass. It should be fine to...
  40. ...and. I've had a crack at re-ordering the...

    ...and. I've had a crack at re-ordering the ::begin() code for most of the Audio I/O objects, the result of which can be found at https://github.com/h4yn0nnym0u5e/Audio/tree/fix/io-inits. I've done a...
  41. SSSSSPPLOOOOSH! Yup, Paul has put @KurtE's...

    SSSSSPPLOOOOSH!

    Yup, Paul has put @KurtE's mods into 1.57b2, so you have the choice of just the audio PR or the whole shebang. Up to you...
  42. Thanks @TheHermit! And yes, please don't risk any...

    Thanks @TheHermit! And yes, please don't risk any of your hardware...

    For the moment I'd say we'd like confirmation that your previous tests and use-cases are more robust / completely fixed. You...
  43. At the moment, you add another layer of mixers: a...

    At the moment, you add another layer of mixers: a bit messy, but they consume very little CPU if the channel gains are set to 1.0 or 0.0, or if the source is not transmitting audio blocks. That's why...
  44. Excellent - thanks. And input_i2s, too. From...

    Excellent - thanks.

    And input_i2s, too. From input_i2s.cpp:

    dma.triggerAtHardwareEvent(DMAMUX_SOURCE_SAI1_RX);

    I2S1_RCSR = I2S_RCSR_RE | I2S_RCSR_BCE | I2S_RCSR_FRDE | I2S_RCSR_FR;
    #endif...
  45. Been doing more investigation, and I think one...

    Been doing more investigation, and I think one key point is that (as @KurtE said in #114) dma.enable() must occur before the I2S hardware is enabled, otherwise the I2S will fire a request to a...
  46. Replies
    21
    Views
    2,628

    As noted on...

    As noted on https://forum.pjrc.com/threads/70406-Cannot-Mix-Playing-WAV-snd-MP3-files-with-latest-cores-library, the dynamic AudioConnection has broken some previous code. That code did rely on bugs...
  47. Looks like Paul has already merged that! Im a...

    Looks like Paul has already merged that! Im a bit concerned that the update_responsibility() line is now out of its previous order
    I can take that on, once the PT8211_2 case has been ratified by...
  48. Great! I assume you meant "running from...

    Great!

    I assume you meant "running from FLASHMEM slowed the code down" (which it does, as Flash is slower than ITCM).

    Yup, I spotted that too*. Agree it should be changed throughout, if others'...
  49. You seem to be trying to make multiple...

    You seem to be trying to make multiple connections to the i2s1 inputs.
  50. OK, so here's a thing - these are the last few...

    OK, so here's a thing - these are the last few lines of AudioOutputPT8211_2::begin():

    dma.triggerAtHardwareEvent(DMAMUX_SOURCE_SAI2_TX);

    I2S2_TCSR |= I2S_TCSR_TE | I2S_TCSR_BCE |...
Results 1 to 50 of 398
Page 1 of 8 1 2 3 4