From 816ddfbd81c66c11abf013306d0de61056b874b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kul=C3=ADk?= Date: Wed, 20 Apr 2022 12:46:08 +0200 Subject: [PATCH] gh-91734: Fix ossaudio support on Solaris (GH-91735) (cherry picked from commit 4420faf273e9e2d03226a9375e1e04a336230c84) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jakub KulĂ­k --- .../Library/2022-04-20-09-49-33.gh-issue-91734.4Dj4Gy.rst | 1 + Modules/ossaudiodev.c | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2022-04-20-09-49-33.gh-issue-91734.4Dj4Gy.rst diff --git a/Misc/NEWS.d/next/Library/2022-04-20-09-49-33.gh-issue-91734.4Dj4Gy.rst b/Misc/NEWS.d/next/Library/2022-04-20-09-49-33.gh-issue-91734.4Dj4Gy.rst new file mode 100644 index 00000000000000..47d9e0dea458a3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-04-20-09-49-33.gh-issue-91734.4Dj4Gy.rst @@ -0,0 +1 @@ +Fix OSS audio support on Solaris. diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c index 4f2d9cb8b7c9c7..b22bd42dcaa6f5 100644 --- a/Modules/ossaudiodev.c +++ b/Modules/ossaudiodev.c @@ -1243,8 +1243,12 @@ PyInit_ossaudiodev(void) _EXPORT_INT(m, SNDCTL_DSP_GETSPDIF); #endif _EXPORT_INT(m, SNDCTL_DSP_GETTRIGGER); +#ifdef SNDCTL_DSP_MAPINBUF _EXPORT_INT(m, SNDCTL_DSP_MAPINBUF); +#endif +#ifdef SNDCTL_DSP_MAPOUTBUF _EXPORT_INT(m, SNDCTL_DSP_MAPOUTBUF); +#endif _EXPORT_INT(m, SNDCTL_DSP_NONBLOCK); _EXPORT_INT(m, SNDCTL_DSP_POST); #ifdef SNDCTL_DSP_PROFILE pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy