diff --git a/Makefile b/Makefile index 0ae5394..c33930a 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,14 @@ win := $(shell uname | grep CYGWIN) dar := $(shell uname | grep Darwin) +obsd := $(shell uname | grep OpenBSD) ifneq ($(win),) include Makefile.win else ifeq ($(dar),Darwin) include Makefile.macosx +else ifeq ($(obsd),OpenBSD) + include Makefile.openbsd else include Makefile.linux endif diff --git a/Makefile.openbsd b/Makefile.openbsd index c6661f4..26770bb 100644 --- a/Makefile.openbsd +++ b/Makefile.openbsd @@ -113,7 +113,7 @@ endif # ---------- ARM - pcDuino ---------- # # clang 5.0.1 running on OpenBSD-6.3/armv7. -# Cortex-A8 (ARMv7A) + VFPv3 + NEON +# Cortex-A8 (ARMv7A) + VFPv3 + NEON @ 1008MHz # # # seconds options @@ -127,23 +127,23 @@ endif # # -# ---------- ARM - Banana Pi ---------- +# ---------- ARM - Orange Pi PC ---------- # # clang 5.0.1 running on OpenBSD-6.3/armv7. -# Cortex-A7 (ARMv7A) + VFPv4 + NEON +# Cortex-A7 (ARMv7A) + VFPv4 + NEON @ 1008MHz # # # seconds options # --------- ------- -# 10037.693 -O3 -ffast-math -mfpu=neon -# 437.039 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfp -# 436.613 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv3 -# 436.318 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv3-d16 -# 358.505 -O3 -ffast-math -mfloat-abi=softfp -mfpu=neon -# 357.988 -O3 -ffast-math -mfloat-abi=hard -mfpu=neon -# 436.393 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv4 -# 436.413 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv4-d16 -# 359.145 -O3 -ffast-math -mfloat-abi=softfp -mfpu=neon-vfpv4 +# 8961.491 -O3 -ffast-math +# 399.880 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfp +# 400.615 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv3 +# 399.659 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv3-d16 +# 329.392 -O3 -ffast-math -mfloat-abi=softfp -mfpu=neon +# 329.060 -O3 -ffast-math -mfloat-abi=hard -mfpu=neon +# 398.590 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv4 +# 399.478 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv4-d16 +# 328.698 -O3 -ffast-math -mfloat-abi=softfp -mfpu=neon-vfpv4 # # diff --git a/audio.h b/audio.h index 71d3751..0840cc4 100644 --- a/audio.h +++ b/audio.h @@ -285,8 +285,8 @@ struct audio_s { #if __WIN32__ || __APPLE__ #define DEFAULT_ADEVICE "" /* Windows: Empty string = default audio device. */ #else -#if USE_ALSA -#define DEFAULT_ADEVICE "default" /* Use default device for ALSA. */ +#if defined(USE_ALSA) || defined(__OpenBSD__) +#define DEFAULT_ADEVICE "default" /* Use default device for ALSA/OpenBSD-portaudio. */ #else #define DEFAULT_ADEVICE "/dev/dsp" /* First audio device for OSS. */ #endif