public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: "cygwin-apps@cygwin.com" <cygwin-apps@cygwin.com>
Subject: Re: [ITA] SDL2 (2.26.2)
Date: Thu, 9 Feb 2023 22:10:41 +0900	[thread overview]
Message-ID: <20230209221041.1003d4b2f8b942ffbe6c4a7f@nifty.ne.jp> (raw)
In-Reply-To: <5a95e243-abb0-64e2-7959-106bc6b1af21@dronecode.org.uk>

[-- Attachment #1: Type: text/plain, Size: 1498 bytes --]

On Sat, 28 Jan 2023 16:24:35 +0000
Jon Turney wrote:
> On 22/01/2023 12:05, Takashi Yano via Cygwin-apps wrote:
> > On Sat, 21 Jan 2023 14:58:55 +0000
> > Jon Turney wrote:
> >> You've made some changes in the configuration here (switching from
> >> enabling pulseaudio to oss)
> >>
> >> I think you've also dropped the winmm patch.
> >>
> >> I don't understand enough to evaluate the correctness those changes, so
> >> it would be nice if you could explain that to me.
> > 
> > Thanks for reviewing. The reason why I turnd off pulseaudio
> > is that the latency was unacceptably large, despite the fact
> > that pulseaudio is preferred over other sound drivers.
> > Due to this, ffplay missynchronized sound with video.
> > 
> > Also, I guess OSS was previously disabled because it does not
> > work as expected due to a bug of cygwin:
> > https://cygwin.com/pipermail/cygwin-patches/2023q1/012134.html
> > and winmm was enabled instead.
> > 
> > Now, the bug has been fixed and SDL2 gets working with OSS.
> > Therefore, we don't need winmm support anymore. I think
> > it is better not to call winmm directly from cygwin apps.
> > 
> > BTW, I tried to modify SDL2 code to minimize the latency of
> > pulseaudio and it succeeded. So, I re-enabled the pulseaudio
> > and updated the package.
> > 
> > Could you please review the package again?
> 
> Thanks for this explanation, it all makes sense now.
> 
> Please go ahead.

Version updated to 2.26.3.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

[-- Attachment #2: SDL2.cygport --]
[-- Type: text/plain, Size: 1547 bytes --]

NAME="SDL2"
VERSION=2.26.3
RELEASE=1
LICENSE="Zlib"
CATEGORY="Libs"
SUMMARY="Simple DirectMedia Layer core library"
DESCRIPTION="This is the Simple DirectMedia Layer, a general API that provides
low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
and 2D framebuffer across multiple platforms."
HOMEPAGE="http://www.libsdl.org/"
SRC_URI="http://www.libsdl.org/release/SDL2-${VERSION}.tar.gz"

PKG_NAMES="libSDL2_2.0_0 libSDL2-devel"
libSDL2_2_0_0_REQUIRES="libdbus1_3 libGL1 libsamplerate0 libX11_6 libXcursor1 libXext6 libXi6 libXinerama1 libXrandr2 libXss1" # libaudio2 libpulse-simple0
libSDL2_2_0_0_CONTENTS="usr/bin/cygSDL2-2-0-0.dll usr/share/doc/"
libSDL2_devel_CONTENTS="usr/bin/sdl2-config usr/include/ usr/lib/ usr/share/aclocal/"

DISTCLEANFILES="acinclude/l*.m4"
DIFF_EXCLUDES="SDL_config.h"

ACLOCAL_FLAGS="-I acinclude"
NO_AUTOHEADER=1
CYGCONF_ARGS="
	--enable-pthreads
	--enable-pthread-sem

	--disable-arts
	--disable-arts-shared
	--enable-esd
	--enable-esd-shared
	--enable-nas
	--enable-nas-shared
	--enable-oss
	--enable-pulseaudio
	--enable-pulseaudio-shared
	--enable-libsamplerate
	--enable-libsamplerate-shared

	--enable-video-dummy
	--enable-video-opengl
	--enable-video-opengles
	--enable-video-x11
	--enable-video-x11-scrnsaver
	--enable-video-x11-xcursor
	--enable-video-x11-xinput
	--enable-video-x11-xrandr
	--enable-video-x11-xshape
	--enable-x11-shared
"

DOCS="README-SDL.txt README-porting.txt"

BUILD_REQUIRES="libX11-devel libGL-devel libEGL-devel libsamplerate-devel libesd-devel nas"

      reply	other threads:[~2023-02-09 13:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-20 10:35 Takashi Yano
2023-01-21 14:58 ` Jon Turney
2023-01-21 22:07   ` Brian Inglis
2023-01-22 12:05   ` Takashi Yano
2023-01-28 16:24     ` Jon Turney
2023-02-09 13:10       ` Takashi Yano [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230209221041.1003d4b2f8b942ffbe6c4a7f@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).