Skip to content

Instantly share code, notes, and snippets.

View cowlibob's full-sized avatar
💭
Eyeballing the code

James Cowlishaw cowlibob

💭
Eyeballing the code
View GitHub Profile
@cowlibob
cowlibob / ToneOutputUnit.swift
Created December 30, 2021 22:51 — forked from hotpaw2/ToneOutputUnit.swift
Swift 3 Audio class that can play a simple tone on an iOS device
//
// ToneOutputUnit.swift
//
// This is a Swift 3 class (which should be instantiated as a singleton object)
// that can play a single tone of arbitrary tone and frequency on iOS devices
// using run-time sinewave synthesis and the Audio Unit v3 API with RemoteIO.
//
// Created by Ronald Nicholson rhn@nicholson.com on 2/20/2016.
// revised 2016-Sep-08 for Swift 3
// http://www.nicholson.com/rhn/