mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-23 09:49:34 -10:00
waveout opens a wider layout as WAVEFORMATEXTENSIBLE with the frontend's mask and falls back to stereo where the device refuses it. orbis opens sceAudioOut's eight-channel port when a wider layout is asked for and reports 7.1, leaving the downmix to the system. rwebaudio widens the page's destination to 8, 6 or 4 discrete channels as far as its maxChannelCount goes and queues one plane per channel. All three report the layout they opened through the layout hook; with stereo asked for, or a device that takes only stereo, each opens as before.
26 lines
794 B
Makefile
26 lines
794 B
Makefile
# The waveout audio driver against a real wave output device, under
|
|
# Wine. Needs a mingw compiler and wine; with no sound device the test
|
|
# skips.
|
|
TARGET := waveout_test.exe
|
|
CC := x86_64-w64-mingw32-gcc
|
|
WINE ?= $(shell command -v wine64 || command -v wine)
|
|
|
|
ROOT := ../../..
|
|
CFLAGS += -std=gnu99 -O1 -Wall -Wno-unused-function \
|
|
-DRARCH_INTERNAL -DHAVE_THREADS -DHAVE_WAVEOUT \
|
|
-I$(ROOT) -I$(ROOT)/libretro-common/include -I$(ROOT)/deps
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): waveout_test.c $(ROOT)/audio/drivers/waveout.c $(ROOT)/audio/audio_upmix.c
|
|
$(CC) $(CFLAGS) -o $@ waveout_test.c $(ROOT)/audio/audio_upmix.c -lwinmm
|
|
|
|
check: all
|
|
@test -n "$(WINE)" || { echo "no wine" >&2; exit 1; }
|
|
WINEDEBUG=-all $(WINE) ./$(TARGET)
|
|
|
|
clean:
|
|
rm -f $(TARGET)
|
|
|
|
.PHONY: all check clean
|