https://github.com/ideoforms/audio-io-manager
A minimal audio I/O interface for iOS.
https://github.com/ideoforms/audio-io-manager
Last synced: 10 months ago
JSON representation
A minimal audio I/O interface for iOS.
- Host: GitHub
- URL: https://github.com/ideoforms/audio-io-manager
- Owner: ideoforms
- Created: 2016-03-17T22:15:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-04T14:37:29.000Z (almost 10 years ago)
- Last Synced: 2025-06-29T18:50:50.978Z (about 1 year ago)
- Language: Objective-C
- Size: 31.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AudioIOManager
A minimal audio driver for iOS.
## Usage
```
static int pos = 0;
void audio_callback(float **samples, int num_channels, int num_frames)
{
for (int c = 0; c < num_channels; c++)
{
for (int i = 0; i < num_frames; i++)
{
samples[c][i] = sin(M_PI * 2.0 * 440.0 * pos++ / 44100.0);
}
}
}
AudioIOManager *manager = [[AudioIOManager alloc] initWithCallback:audio_callback];
[manager start];
```