Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C12832_lcd MMA7660 USBDevice mbed
delay.h
- Committer:
- bw
- Date:
- 2014-03-27
- Revision:
- 0:bbf6cf0eab95
File content as of revision 0:bbf6cf0eab95:
/******************************************************************************* * Implements delay lines for audio samples. * Bryan Wade * 27 MAR 2014 ******************************************************************************/ #ifndef DELAY_H #define DELAY_H #include <stdint.h> #include <stdlib.h> typedef struct delay_t delay_t; // Opaque type declaration. // Get a ptr to a new delay struct delay_t *Delay_Create(void); // Configure the delay length and ram location bool Delay_Configure(delay_t *delay, void *ram, size_t size); // Write one sample with feedback to the delay and get one sample out. int16_t Delay_WriteWithFeedback(delay_t *delay, int16_t dataIn, uint16_t gain); #endif