Skip to content

File AudioOutput.cpp

FileList > AudioOutput > AudioOutput.cpp

Go to the source code of this file

  • #include "daisy_seed.h"
  • #include <cmath>

Public Attributes

Type Name
DaisySeed hw
const float kSignalIncrement = (M\_TWOPI \* 220) \* (1.0 / 48000)
float phs

Public Functions

Type Name
void AudioCallback (AudioHandle::InputBuffer in, AudioHandle::OutputBuffer out, size_t size)
int main (void)

Public Attributes Documentation

variable hw

DaisySeed hw;

Global Hardware access


variable kSignalIncrement

const float kSignalIncrement;

An increment for generating a 220Hz wave form at 48kHz sample rate Check out DaisySP for a more complete Oscillator implementation for your project.


variable phs

float phs;

Global phase value for generated signal


Public Functions Documentation

function AudioCallback

void AudioCallback (
    AudioHandle::InputBuffer in,
    AudioHandle::OutputBuffer out,
    size_t size
) 

Function that gets called at a regular interval by the hardware to process, and/or generate audio signals


function main

int main (
    void
) 


The documentation for this class was generated from the following file external-docs/libDaisy/examples/AudioOutput/AudioOutput.cpp