Another approach, instead of writing your own tuner from scratch, would be to port a guitar tuner to openbsd. One major difference between Linux and FreeBSD is the sound drivers so using an application already ported to BSD unix would be a good start. Since FreedBSD has more ported applications that OpenBSD I did a quick search and there is a guitar tuner ported to FreeBSD.
FreeBSD/gtkguitune