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

Search:

Type: Posts; User: o.w.varley

Search: Search took 0.00 seconds.

  1. Awesome. I envy your position!

    Awesome. I envy your position!
  2. I've been investigating something similar....

    I've been investigating something similar. Essentially you are wanting to build voice activation or VOX. When VOX is triggered you dip the volume.

    The trick is getting the gain set such that you...
  3. Replies
    11
    Views
    631

    Thanks @Frank and @defragster. I've now used...

    Thanks @Frank and @defragster. I've now used FLASHMEM and PROGMEM to further optimise memory usage. It ran for 10 hours last night without crashing or leaking which is great.

    I'm using 1.54,...
  4. Replies
    11
    Views
    631

    Big thanks to @KurtE and @FrankB, I've just used...

    Big thanks to @KurtE and @FrankB, I've just used imxrt-size and it's great:


    estack:20028000 ebss:200172e0

    FlexRAM section ITCM+DTCM = 512 KB
    Config : aabfffff (DDDDDIIIIIIIIIII)
    ...
  5. Replies
    11
    Views
    631

    I think I've got to the bottom of it, two issues...

    I think I've got to the bottom of it, two issues that compounded each other.

    Might have helped if, in the original post, I mentioned that I was dynamically allocating 256 bytes 7 times every ~3...
  6. Replies
    11
    Views
    631

    I'm focusing on the fact that neither...

    I'm focusing on the fact that neither Teensy_Size.exe nor mktinyfat.exe can actually handle the .elf file. It doesn't look like the file is too big, the ELF is only 4632KB and the HEX is 1673KB....
  7. Replies
    11
    Views
    631

    Hey @MarKT, I've implemented those changes this...

    Hey @MarKT, I've implemented those changes this morning and added NULL initialisation and NULL checking to every pointer I use and unfortunately it's still crashing.

    I'm doing some testing now to...
  8. Replies
    11
    Views
    631

    Thanks for the reply @MarkT, I'll make those...

    Thanks for the reply @MarkT, I'll make those changes and see if that makes a difference. It it helps, when I refer to having plenty of 'RAM' I'm referring to the heap on RAM2, the function I'm using...
  9. Replies
    11
    Views
    631

    Teesny 4.1 + Audio Shield Crashing

    Hey all,

    I'm trying to pin point an issue I've got that's causing the Teensy to crash. I've probably got too much code to share in full, however, I'll attempt to explain what I'm doing and that...
  10. Replies
    23
    Views
    4,618

    +1 on CrashReport, looks like exactly what I need...

    +1 on CrashReport, looks like exactly what I need to figure out what's going on in my code. Thanks for sharing.
  11. Replies
    23
    Views
    4,618

    Thanks JCW and defragster, starting to understand...

    Thanks JCW and defragster, starting to understand how and where the memory goes now which is great. I'm suffering random crashes on a Teensy 4.1 so wanting to understand exactly what's where so I can...
  12. Replies
    23
    Views
    4,618

    Can someone confirm that when you use AudioMemory...

    Can someone confirm that when you use AudioMemory you are essentially reserving a section of RAM2 for sole use by the audio library? So, for example, if I set AudioMemory(64) I'd be reserving 64...
  13. Replies
    48
    Views
    2,837

    So I've now got the Teensy receiving 7 x 44.1 Khz...

    So I've now got the Teensy receiving 7 x 44.1 Khz audio streams over UDP then mixing them together with the mic input to give a single output. Fundamentally it works really nicely without any...
  14. Replies
    1
    Views
    276

    As a starter for 10, I've essentially used the...

    As a starter for 10, I've essentially used the guts of the AudioAnalyzePeak object to check, when transmitting, that the peak of the audio block exceeds a specific threshold. This works, however, it...
  15. Replies
    1
    Views
    276

    Microphone VOX

    Hey all,

    I'm looking to implement basic VOX for the microphone on a Teensy 4.1 with Audio Shield (Rev D). I can see that you can adjust the gain and the level of the input, however, has anyone...
  16. Replies
    48
    Views
    2,837

    Sorry for the lack of update. I'm yet to pursue...

    Sorry for the lack of update. I'm yet to pursue the Circular_Buffer suggestion I've found the issue with the original code that was causing the clipped wave forms in my post above. Essentially I was...
  17. Replies
    48
    Views
    2,837

    Awesome, thanks will take a look

    Awesome, thanks will take a look
  18. Replies
    48
    Views
    2,837

    Thanks for the advice on FNET Vs...

    Thanks for the advice on FNET Vs NativeEthernetUdp. This issue was interesting, it was being caused by a combination of using std queue and also local variables in the read function. If I inspect the...
  19. Replies
    48
    Views
    2,837

    Given the random nature of the wave I suspected...

    Given the random nature of the wave I suspected something wasn't honouring the byte ordering. Turns out that was correct, by swapping the byte order we get a much more representative wave:

    25280
    ...
  20. Replies
    48
    Views
    2,837

    The plot thickens! So I've now setup a second...

    The plot thickens! So I've now setup a second Teensy + Shield that reads the UDP packets being sent from the first Teensy. It then rebroadcasts these out over UDP and I've setup my PC C# app to read...
  21. Replies
    48
    Views
    2,837

    Fixed the problem, the C# app wasn't reading fast...

    Fixed the problem, the C# app wasn't reading fast enough from the stream and some packets got disposed. I've now got the Teensy audio coming through on the PC with zero packet loss or issues with...
  22. Replies
    48
    Views
    2,837

    Just to add that I think the above is a bug in my...

    Just to add that I think the above is a bug in my c# code, not an issue with the UDP packets. Looking at them in wireshark they are all nicely ordered, even past 310 packets. More investigation ahead!
  23. Replies
    48
    Views
    2,837

    Not had a chance to get as far as I wanted...

    Not had a chance to get as far as I wanted tonight, however, I've added a sequence ID and I can see that the packets are arriving in the order they are sent. The really interesting behaviour is that...
  24. Replies
    48
    Views
    2,837

    Thanks for the responses. I'll have a look at...

    Thanks for the responses. I'll have a look at packet ordering and see whether that's what causing it.

    On the use of UDP , there are already protocols that do this yes, I just wanted to explore...
  25. Replies
    48
    Views
    2,837

    Hi all, Got some more time looking at the...

    Hi all,

    Got some more time looking at the problem this evening. To try to get my head round what's happening I've created a 1Khz tone raw file. I'm now playing this on the Teensy using a custom...
  26. Replies
    48
    Views
    2,837

    The reason I think it's the frequency that was...

    The reason I think it's the frequency that was previously discussed is that it sounds exactly like listening to an old analogue radio when you are really close the actual stations frequency but not...
  27. Replies
    48
    Views
    2,837

    Interesting. So I've got the implementation up...

    Interesting. So I've got the implementation up and running, I'll share the code shortly, however, I'm experiencing a static like tone when playing the received blocks rather audio. It feels like a...
  28. Replies
    48
    Views
    2,837

    Thanks for the input Adrian, much appreciated.

    Thanks for the input Adrian, much appreciated.
  29. Replies
    48
    Views
    2,837

    Thank you all for the guidance and incite on...

    Thank you all for the guidance and incite on audio delay. Given that in this scenario, each teensy will be connected to an individual headset I think I might be able to get away without synchronising...
  30. Replies
    48
    Views
    2,837

    Thanks Frank, great response. Is there an...

    Thanks Frank, great response.

    Is there an known standard for when a delay becomes perceivable to a human? What should I be aiming to keep the delay below?

    Sending and receiving doesn't look...
  31. Replies
    48
    Views
    2,837

    Following on from what Frank B said above, and...

    Following on from what Frank B said above, and doing some more reading around, can I check my understanding of some of the basic theory?

    The standard sampling rate is 44.1 kHz, each sample is two...
  32. Replies
    48
    Views
    2,837

    Hey Frank, thanks for that gem, saves me chasing...

    Hey Frank, thanks for that gem, saves me chasing a Red Herring. I'm presuming that down sampling to 8khz would help reduce the size of the packets being sent and might help me a little bit with the...
  33. Replies
    48
    Views
    2,837

    Hey Jonr, thanks for the pointer and definitely...

    Hey Jonr, thanks for the pointer and definitely something I'll need to solve. There's going to be about 20 teensy 4.1 with audio shields running on a LAN so coordinating the timing is going to be...
  34. Replies
    48
    Views
    2,837

    Figured it out, my dodgy code was allocating...

    Figured it out, my dodgy code was allocating memory blocks in the update function regardless of the state of the _OutputQueue but only releasing them if the queue had any data within it.

    The above...
  35. Replies
    48
    Views
    2,837

    Teesny audio over UDP

    Hey all,

    I'm doing a project at the moment where I'm pushing out audio captured from a Teensy 4.1 + shield board over a LAN.

    I've created my own Audio Player (AudioPlayMemoryRaw) that can take...
Results 1 to 35 of 35