all repos — xyw @ 748e77ce7a00395ee0bd55606bf716f481c3b227

A minimal virtual machine and assembler for terminals.

Silencing warning in case of no audio backend.
h3rald h3rald@h3rald.com
Thu, 30 Jul 2026 09:45:24 +0200
commit

748e77ce7a00395ee0bd55606bf716f481c3b227

parent

392bdd2864a27ccaa21c308a9b75a600b52e1692

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M devices/beeper.cdevices/beeper.c

@@ -51,6 +51,7 @@ #define XYW_HAVE_ALSA 1

#endif #endif +#ifndef(XYW_NO_AUDIO_BACKEND) // Synthesizes a mono 16-bit square wave. // Caller owns the returned buffer. // Shared by every backend below - this is the only part of tone

@@ -81,6 +82,7 @@

*out_frames = frames; return buf; } +#endif #if defined(XYW_NO_AUDIO_BACKEND)