Skip to content

Commit

Permalink
Test core audio
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuda-Chen committed Oct 28, 2024
1 parent a80a47a commit 5786352
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,33 @@ endif

# virtio-snd
ENABLE_VIRTIOSND ?= 1
ifneq ($(UNAME_S),Linux)
ifneq ($(UNAME_S),$(filter $(UNAME_S),Linux Darwin))
ENABLE_VIRTIOSND := 0
endif

ifeq (0, $(call check-alsa))
$(warning No libasound installed. Check libasound in advance.)
ENABLE_VIRTIOSND := 0
# Check ALSA installation
ifeq ($(UNAME_S),Linux)
ifeq (0, $(call check-alsa))
$(warning No libasound installed. Check libasound in advance.)
ENABLE_VIRTIOSND := 0
endif
endif
# Check core audio installation
ifeq ($(UNAME_S),Darwin)
ifeq (0, $(call check-coreaudio))
$(warning No CoreAudio framework installed.)
ENABLE_VIRTIOSND := 0
endif
#ifeq (0, $(call check-coreaudio))
#$(warning No CoreAudio framework installed.)
# ENABLE_VIRTIOSND := 0
#endif
$(call set-feature, VIRTIOSND)
ifeq ($(call has, VIRTIOSND), 1)
OBJS_EXTRA += virtio-snd.o
LDFLAGS += -lasound -lpthread

ifeq ($(UNAME_S),Linux)
LDFLAGS += -lasound -lpthread
else ifeq($(UNAME_S),Darwin)
LDFLAGS += lpthread
CFLAGS += -framework CoreAudio
endif
CFLAGS += -Icnfa

cnfa/Makefile:
Expand Down

0 comments on commit 5786352

Please sign in to comment.