Skip to content

dsego/odin-pa_ringbuffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

pa_ringbuffer

Portaudio RingBuffer bindings for Odin

Example

import pa_rb "./pa_ringbuffer"

rb := pa_rb.RingBuffer{}
rb_data := make([]u8, RB_SIZE * size_of(f32))
pa_rb.InitializeRingBuffer(&rb, i32(size_of(f32)), i32(RB_SIZE), raw_data(rb_data))

pa_rb.WriteRingBuffer(&rb, raw_data(input), i32(len(input)))

Build portaudio ringbuffer on MacOS

clang pa_ringbuffer.c pa_ringbuffer.h -c -O2 -Os -fPIC
ar rcs pa_ringbuffer.a pa_ringbuffer.o

About

Portaudio RingBuffer bindings for Odin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages