19 #if !(defined(MOZZI_H_) || defined(MOZZI_HEADERS_ONLY_H_))
20 #warning Direct inclusion of MozziGuts.h is deprecated. Use Mozzi.h, instead, and read about porting to Mozzi 2.0
21 #define MOZZI_COMPATIBILITY_LEVEL MOZZI_COMPATIBILITY_1_1
24 #include "hardware_defines.h"
26 #if IS_TEENSY3() || IS_TEENSY4()
31 #include "internal/config_checks_generic.h"
33 #include "mozzi_analog.h"
34 #include "AudioOutput.h"
38 typedef unsigned char uchar;
39 typedef unsigned int uint;
40 typedef unsigned long ulong;
43 typedef unsigned char byte;
44 typedef unsigned char uint8_t;
45 typedef signed char int8_t;
46 typedef unsigned int uint16_t;
47 typedef signed int int16_t;
48 typedef unsigned long uint32_t;
49 typedef signed long int32_t;
101 #if (MOZZI_COMPATIBILITY_LEVEL <= MOZZI_COMPATIBILITY_1_1) && MOZZI_IS(MOZZI_AUDIO_CHANNELS, MOZZI_MONO)
170 #if defined(FOR_DOXYGEN_ONLY) || (!MOZZI_IS(MOZZI_AUDIO_INPUT, MOZZI_AUDIO_INPUT_NONE))
171 #if defined(FOR_DOXYGEN_ONLY) || defined(MOZZI_ANALOG_READ_RESOLUTION)
172 inline uint16_t
getAudioInput() {
return getAudioInput<MOZZI_ANALOG_READ_RESOLUTION>(); };
174 MOZZI_DEPRECATED(
"2.0",
"This use of getAudioInput() is not portable. Refer to the API documentation for suggested alternatives") inline uint16_t
getAudioInput() {
return getAudioInput<MOZZI__INTERNAL_ANALOG_READ_RESOLUTION>(); };
204 #ifndef _MOZZI_HEADER_ONLY
205 #include "internal/MozziGuts.hpp"
This file keeps a list of named configuration values.
uint16_t getAudioInput16()
See getAudioInput().
uint16_t getAudioInput()
See getAudioInput().
#define MOZZI_CONTROL_RATE
Control rate setting.
void audioHook()
This is required in Arduino's loop().
unsigned long audioTicks()
An alternative for Arduino time functions like micros() and millis().
void updateControl()
This is where you put your control code.
void stopMozzi()
Stops audio and control interrupts and restores the timers to the values they had before Mozzi was st...
AudioOutput updateAudio()
This is where you put your audio code.
unsigned long mozziMicros()
An alternative for Arduino time functions like micros() and millis().
This struct encapsulates one frame of mono audio output.