Davidelvig
Well-known member
I've been sending audio MIDI and serial out through USB with this define in PlatformIO
build_flags = -D HW_T41 -D USB_MIDI_AUDIO_SERIAL
The use of USB audio is new for me.
I'm testing with GarageBand, and an audio track and connecting it to "DigiBrass MIDI" audio in port (see question 1).
It works very well, until periodically disconnecting with this message
(question 2)
so:
1) How to get a different named DigiBrass Audio
I'm using a name.c file in my project like this
Is there an analogy for USB audio naming (perhaps an example like the MIDI_name example)?
2) What might be causing the USB audio to lose connection with GarageBand. Of note, the connection sometimes returns with a new identical dialog box.
I'm routing my audio to USB using the Audio Library like this.
This also happens without GarageBand, and with LoopBack installed.. those LoopBack only fails briefly then reconnects automatically.
Is there anything in the sound itself (e.g. really loud signals) that might do this?
3) What the best practices for USB audio out? ... with Teensy 4.1, SGTL5000 (on my own board, driven by Teensy)
Thanks
build_flags = -D HW_T41 -D USB_MIDI_AUDIO_SERIAL
The use of USB audio is new for me.
I'm testing with GarageBand, and an audio track and connecting it to "DigiBrass MIDI" audio in port (see question 1).
It works very well, until periodically disconnecting with this message
(question 2)
so:
1) How to get a different named DigiBrass Audio
I'm using a name.c file in my project like this
GarageBand shows this#include "usb_names.h"
// Edit these lines to create your own name. The length must
// match the number of characters in your custom name.
#define MIDI_NAME {'D','i','g','i','B','r','a','s','s',' ','M','I','D','I'}
#define MIDI_NAME_LEN 14
// Do not change this part. This exact format is required by USB.
struct usb_string_descriptor_struct usb_string_product_name = {
2 + MIDI_NAME_LEN * 2,
3,
MIDI_NAME
};
Is there an analogy for USB audio naming (perhaps an example like the MIDI_name example)?
2) What might be causing the USB audio to lose connection with GarageBand. Of note, the connection sometimes returns with a new identical dialog box.
I'm routing my audio to USB using the Audio Library like this.
This also happens without GarageBand, and with LoopBack installed.. those LoopBack only fails briefly then reconnects automatically.
Is there anything in the sound itself (e.g. really loud signals) that might do this?
3) What the best practices for USB audio out? ... with Teensy 4.1, SGTL5000 (on my own board, driven by Teensy)
Thanks
Last edited: