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

Thread: teensy audio library and examples are missing

  1. #1
    Junior Member
    Join Date
    Feb 2018
    Posts
    7

    teensy audio library and examples are missing

    hello,
    I am running teensyduino 1.48 on Arduino 1.8.9 on MacOS 10.14.1

    I've reinstalled teensyduino several times, and, during the installation process, it lists the teensy audio library as part of what will be installed. When I run the Arduino IDE, the audio examples are not available, and, when managing libraries, it does not show up. Has anyone else had this problem? I'd love to get this library and the examples back.

    Thanks for your help!

    Tom

    Click image for larger version. 

Name:	Screen Shot 2019-12-05 at 2.09.18 PM.png 
Views:	3 
Size:	100.3 KB 
ID:	18349

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,345
    These libs won't be shown in Arduino's "Manage Libraries", because they're written directly into the Teensy platform folder.

    You also won't see them in the File > Examples menu when any non-Teensy is selected in Tools > Boards, because they're installed in Teensy's platform specific folder inside Arduino. So make sure you have Teensy selected in Tools > Boards! Then click File > Examples and look for Audio in the menu. It should look like this:

    Click image for larger version. 

Name:	sc.jpg 
Views:	2 
Size:	79.4 KB 
ID:	18350

    If that doesn't work, maybe try this beta version. It's meant for testing on MacOS Catalina but should work fine on Mojave.

    https://forum.pjrc.com/threads/58000...l=1#post222972

    Long-term we're going to move away from the installer on MacOS, because it violates Apple's new notarization requirements. On Macs this all-in-one download with every library already installed will be the way things are in the future.

  3. #3
    Junior Member
    Join Date
    Feb 2018
    Posts
    7
    Thanks for this help! I have had the teensy selected in the tools> boards menu, so I went ahead and installed the teensyduino from the link you shared. Unfortunately, I'm still not seeing audio in the examples. Here are a couple of screenshots:

    Click image for larger version. 

Name:	Screen Shot 2019-12-08 at 6.45.47 PM.png 
Views:	2 
Size:	527.0 KB 
ID:	18384

    Click image for larger version. 

Name:	Screen Shot 2019-12-08 at 6.46.00 PM.png 
Views:	3 
Size:	632.4 KB 
ID:	18385

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,345
    Any chance you have a conflicting library in your Documents/libraries folder? Anything you install there always overrides all the other locations.

  5. #5
    Junior Member
    Join Date
    Feb 2018
    Posts
    7
    Thanks for the quick response, Paul. I don't have a libraries folder in my documents folder. Are you sure that's the directory I should b e looking for?

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,345
    Quote Originally Posted by tommyecho View Post
    Are you sure that's the directory I should b e looking for?
    I do not know what's wrong here. But I do have another idea that might help give more info.

    Click File > Preferences and turn on "Show verbose output during compilation". Then copy this into the code window and click Verify.

    Code:
    #include <Audio.h>
    void setup() {
    }
    void loop() {
    }
    Arduino should be a *lot* of info in the small black console area. Scroll up (and perhaps drag the divider to make the console part bigger) until you see the info about the locations of the libraries it actually used.

    When I compile it here, this is the info Audio.h:

    Code:
    Multiple libraries were found for "Audio.h"
     Used: /home/paul/teensy/arduino-1.8.10/hardware/teensy/avr/libraries/Audio
    and

    Code:
    Using library Audio at version 1.3 in folder: /home/paul/teensy/arduino-1.8.10/hardware/teensy/avr/libraries/Audio
    Hopefully it will show you a full pathname of whatever it's finding for Audio.h that isn't Teensy's Audio library.

  7. #7
    Junior Member
    Join Date
    Feb 2018
    Posts
    7
    Just did that! Here's what it printed:

    Click image for larger version. 

Name:	Screen Shot 2019-12-08 at 8.04.26 PM.jpg 
Views:	5 
Size:	28.5 KB 
ID:	18386

  8. #8
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,345
    That confirms you *do* have a libraries folder in Documents.

    Look again, it's in Documents/Arduino/libraries/Audio.

    You need to move or delete that library, because it's interfering with Arduino finding the one for Teensy.

  9. #9
    Junior Member
    Join Date
    Feb 2018
    Posts
    7
    This seems to have fixed it, Paul. Thank you so much for the help! All is well now

Posting Permissions

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