Skip to content

Instantly share code, notes, and snippets.

View wudijimao's full-sized avatar
🎯
Focusing

wudijimao wudijimao

🎯
Focusing
View GitHub Profile
@konstantinpavlikhin
konstantinpavlikhin / XXXSpeakerDevice.m
Last active June 8, 2022 10:02
Using VoiceProcessingIO for echo cancellation on macOS
OSStatus MyOutputRenderCallback(void* inRefCon, AudioUnitRenderActionFlags* ioActionFlags, const AudioTimeStamp* inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList* ioData)
{
// Not being called at all.
}
@implementation XXXSpeakerDevice
{
AUGraph _graph;
}
@jokertarot
jokertarot / clfontpng.cc
Created November 21, 2013 15:43
How to render color emoji font with FreeType 2.5
// = Requirements: freetype 2.5, libpng, libicu, libz, libzip2
// = How to compile:
// % export CXXFLAGS=`pkg-config --cflags freetype2 libpng`
// % export LDFLAGS=`pkg-config --libs freetype2 libpng`
// % clang++ -o clfontpng -static $(CXXFLAGS) clfontpng.cc $(LDFLAGS) \
// -licuuc -lz -lbz2
#include <cassert>
#include <cctype>
#include <iostream>
#include <memory>