* [ITA] libsamplerate
@ 2023-09-09 10:23 Takashi Yano
0 siblings, 0 replies; only message in thread
From: Takashi Yano @ 2023-09-09 10:23 UTC (permalink / raw)
To: cygwin-apps
[-- Attachment #1: Type: text/plain, Size: 109 bytes --]
I'd like to adopt the package libsamplerate.
Thanks in advance.
--
Takashi Yano <takashi.yano@nifty.ne.jp>
[-- Attachment #2: libsamplerate.cygport --]
[-- Type: text/plain, Size: 844 bytes --]
NAME="libsamplerate"
VERSION=0.2.2
RELEASE=1
LICENSE="BSD-2-Clause"
CATEGORY="Audio"
SUMMARY="Sample rate converter library"
DESCRIPTION="libsamplerate is a Sample Rate Converter for audio. One example
of where such a thing would be useful is converting audio from the CD sample
rate of 44.1kHz to the 48kHz sample rate used by DAT players."
DESCRIPTION="Sample rate converter library"
HOMEPAGE="https://libsndfile.github.io/libsamplerate/index.html"
SRC_URI="https://github.com/libsndfile/libsamplerate/releases/download/${VERSION}/${NAME}-${VERSION}.tar.xz"
PKG_NAMES="${NAME} ${NAME}0 ${NAME}-devel"
libsamplerate_SUMMARY="${SUMMARY% *} utilities"
libsamplerate_CONTENTS='usr/share/'
libsamplerate0_CONTENTS='usr/bin/*.dll'
libsamplerate_devel_CONTENTS='usr/include/ usr/lib/'
HTMLDOCS="doc/*.html doc/*.png doc/*.css"
[-- Attachment #3: libsamplerate-0.2.2-1.src.patch --]
[-- Type: text/plain, Size: 1740 bytes --]
--- origsrc/libsamplerate-0.2.2/configure.ac 2021-09-05 20:48:12.000000000 +0900
+++ src/libsamplerate-0.2.2/configure.ac 2023-09-09 17:53:59.819880900 +0900
@@ -292,7 +294,7 @@ AS_IF([test "x$have_visibility" = "xyes"
AS_IF([test "x$lt_cv_prog_gnu_ld" = "xyes"], [
AS_CASE([${host_os}],
- [mingw*|cygwin*], [
+ [mingw*], [
SHLIB_VERSION_ARG="-export-symbols \$(top_srcdir)/Win32/libsamplerate-0.def"],
[*], [
SHLIB_VERSION_ARG="-Wl,--version-script=\$(top_builddir)/src/Version_script"
--- origsrc/libsamplerate-0.2.2/examples/audio_out.c 2021-05-23 23:28:23.000000000 +0900
+++ src/libsamplerate-0.2.2/examples/audio_out.c 2023-09-09 17:30:33.441863400 +0900
@@ -42,7 +42,7 @@
** Linux (ALSA and OSS) functions for playing a sound.
*/
-#if defined (__linux__)
+#if defined (__linux__) || defined (__CYGWIN__)
#if HAVE_ALSA
@@ -997,7 +997,7 @@ solaris_close (AUDIO_OUT *audio_out)
AUDIO_OUT *
audio_open (int channels, int samplerate)
{
-#if defined (__linux__)
+#if defined (__linux__) || defined (__CYGWIN__)
#if HAVE_ALSA
if (access ("/proc/asound/cards", R_OK) == 0)
return alsa_open (channels, samplerate) ;
@@ -1039,7 +1039,7 @@ audio_play (get_audio_callback_t callbac
return ;
} ;
-#if defined (__linux__)
+#if defined (__linux__) || defined (__CYGWIN__)
#if HAVE_ALSA
if (audio_out->magic == ALSA_MAGIC)
alsa_play (callback, audio_out, callback_data) ;
@@ -1064,7 +1064,7 @@ audio_play (get_audio_callback_t callbac
void
audio_close (AUDIO_OUT *audio_out)
{
-#if defined (__linux__)
+#if defined (__linux__) || defined (__CYGWIN__)
#if HAVE_ALSA
if (audio_out->magic == ALSA_MAGIC)
alsa_close (audio_out) ;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-09 10:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-09 10:23 [ITA] libsamplerate Takashi Yano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).