From 527e433ddd106f3a8ac9406dd7f1e0f0e212f8c5 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Tue, 30 Sep 2008 04:25:46 +0000
Subject: [PATCH] Fix UP version of portaudio support

---
 src/xpdev/xpbeep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xpdev/xpbeep.c b/src/xpdev/xpbeep.c
index d7c5226404..f80f8a6f36 100644
--- a/src/xpdev/xpbeep.c
+++ b/src/xpdev/xpbeep.c
@@ -736,7 +736,7 @@ BOOL DLLCALL xp_play_sample(const unsigned char *sample, size_t sample_size, BOO
 #ifdef WITH_PORTAUDIO
 	if(handle_type==SOUND_DEVICE_PORTAUDIO) {
 		if(pa_api->ver >= 1900) {
-			pa_api->write(portaudio_stream, sample_buffer, sample_size);
+			pa_api->write(portaudio_stream, sample, sample_size);
 		}
 		else {
 			pawave=sample;
-- 
GitLab