# NetBSD Folder Guide

This folder is the preliminary NetBSD target layer for `sfxlib`.

It follows the `gfxlib2` BSD pattern: keep shared Unix support in
`sfxlib/unix/`, and make the NetBSD directory a thin target-specific shim.

## Files In This Folder

### `fb_sfx_netbsd.h`
Small NetBSD backend header.

### `sfx_netbsd.c`
NetBSD target shim.

Job:
- provides background feed scaffolding for unattended playback
- owns the NetBSD driver list
- provides weak capture fallbacks only when no concrete driver overrides them

### `sfx_driver_oss.c`
NetBSD OSS playback and capture driver.

Job:
- opens and configures `/dev/sound0`, `/dev/dsp`, or the selected OSS device
- writes signed 16-bit PCM frames generated by the shared mixer
- reads signed 16-bit PCM capture frames from OSS input devices

Capture device selection:
- `SFXLIB_OSS_CAPTURE_DEVICE`
- `SFXLIB_BSD_OSS_CAPTURE_DEVICE`
- playback device fallback
