Commit Graph

65 Commits

Author SHA1 Message Date
jakemsr
53ef50a03a cleanup sndio backend
- rename from "libsndio" to "sndio"
- remove support for "frame tick" synchronization; nothing uses it
- as with many other sndio backends, the audio device block size is the
  buffer-write-size the application wants and there are 2 blocks per
  device buffer
- if SDL will resample, increase the audio block and buffer size by
  the same ratio, so that device latency (or how much *time* the
  application has between write()s to not let the buffer underrun) does
  not change
- allow applications to disable conversions

tested with almost every port that uses this code (exceptions being some
games that require non-free game data) on a device most likely to be
affected by the changes (azalia(4) that only does 44.1 or 48 kHz s16)

unoverriding conversion disabling exposes brokenness in a few other
ports, those will be fixed soon
2009-01-24 10:56:11 +00:00
jakemsr
be62cb80f3 remove arts and esd backends
from Brad, thanks
2008-12-30 02:15:20 +00:00
jakemsr
bb8f2fc023 add libsndio backend and use it by default.
take maintainership as suggested by current maintainer.

ok pvalchev@
2008-11-02 14:53:51 +00:00
naddy
c218631a73 Fix alignment error in SDL display output from sparc64 to i386.
From upstream SVN.  ok pvalchev@, brad@
2008-09-16 20:43:10 +00:00
pvalchev
546f4316e3 @X_LIBS@ and @C_CFLAGS@ for pkg-config too, from brad 2008-03-20 22:00:15 +00:00
pvalchev
7081132bbf add @X_CFLAGS@ to sdl-config --cflags (-I${X11BASE}/include), much
like -L{X11...} is in --libs
from Peter Hessler
2008-03-20 05:14:11 +00:00
jakemsr
99fccde5bc - make artsd audio output work by linking with libartsc instead
of trying to dlopen() it.  also fix a couple bugs in the artsd
  output module: when artsd is "suspended", it only means that
  it it not accessing the soundcard at the moment, not that it
  will not accept data.  fix output latency by setting parameters
  that actually are settable, instead of trying to set read-only(!)
  parameters.

- allow the default audio output method to be chosen with the
  SDL_AUDIO_DRIVER environment variable.  choices are 'arts',
  'esd' and 'audio'.  'audio' selects audio(4) output, and is
  the default if SDL_AUDIO_DRIVER is not set.

ok pvalchev@
2008-03-19 13:33:29 +00:00
pvalchev
3db60d1479 Fix libGL dynamic loading (let dlopen(3) do its job!)
From Antti Harri <iku@openbsd.fi>, tested by many
2008-01-27 18:43:20 +00:00
pvalchev
b5f395b069 Update to sdl-1.2.13
Bugfix release, notably:
- Fix a fullscreen crash with ffmpeg, etc. due to expecting memory to
be executable by default - use mprotect() - Reported by deanna@
- Worked around BadAlloc error when using XVideo on the XFree86 Intel
- Integrated Graphics driver
- Fixed use of sdl-config arguments in sdl.m4
2008-01-03 17:39:40 +00:00
pvalchev
4967057365 update to sdl-1.2.12. long due update, possible now since the macppc
X acceleration bug is now gone (thanks for ajacoutot for endless testing
of this issue), diff from brad
2007-09-22 01:12:38 +00:00
naddy
b0d9a3139b various audio fixes; from jakemsr@ 2007-08-14 15:51:07 +00:00
pvalchev
c5cfa910bf if requested sound settings fail, try 48000 Hz, as some audio devices
can only support that sample rate. reported by deanna, fixed by jakemsr
who asked me to commit it
2007-08-07 14:22:02 +00:00
jakemsr
26a9c9cc52 - use the sun audio interface instead of the OpenBSD interface
- sync patches with update-patches
- bump PKGNAME

the sun interface keeps fewer samples in the play buffer, and with
less fluctuation than the OpenBSD interface.  results in better
audio-video synchronization in e.g. ffplay and gnash

go for it -pval
2007-07-20 05:23:41 +00:00
jolan
c903391a58 use nanosleep 2006-12-04 03:52:08 +00:00
pvalchev
c6c8181980 revert to sdl-1.2.9 for now as this causes some breakage with
at least some macppc scenarios; discovered by ajacoutot
since it's only a few hour window of breakage, be careful reverting
things if you updated during that time
2006-10-19 00:26:33 +00:00
pvalchev
de02c010ac update to sdl-1.2.11
sdl-config --libs is now fixed to pass just -lSDL and the needed deps
get pulled implicitly as is proper
feedback/testing by various and ports@
XXX stupid cvs botched half of this commit
2006-10-18 17:54:33 +00:00
pvalchev
235247ab22 update to sdl-1.2.11
sdl-config --libs is now fixed to pass just -lSDL and the needed deps
get pulled implicitly as is proper
feedback/testing by various and ports@
2006-10-18 17:53:08 +00:00
aanriot
c7dfb912a3 - USE_LIBTOOL=Yes and get ride of MODGNU_SHARED_LIBS.
- PKGNAME bump.

ok steven@ naddy@
2006-02-03 06:20:11 +00:00
pvalchev
046c6bf86c remove 0-byte empty file... strange it was here 2005-10-08 08:21:21 +00:00
pvalchev
c60f742777 Update to sdl-1.2.9 2005-09-17 00:38:15 +00:00
jolan
fa968d4db6 fix opengl stuff 2005-08-10 00:25:16 +00:00
pvalchev
09a699de85 update to SDL-1.2.8 2005-05-11 17:26:15 +00:00
pvalchev
521b9c626b Update to SDL-1.2.7; based on work by jsg@ 2004-10-25 02:34:21 +00:00
pvalchev
5e42f19d55 fix OpenGL support, due to stupid hardcoding of the library name.
proper fix will hopefully happen soon
2004-09-15 01:21:44 +00:00
espie
7548e1358f gcc3 doesn't like multi-line literals, and pval already knew it's
unhappy with nasm.
2003-12-28 22:26:18 +00:00
espie
e3125a817b do not pick up libtool on the way.
okay pval@
2003-12-07 19:45:42 +00:00
pvalchev
8cb7c089bf Update to SDL-1.2.6; mostly from espie, much testing by jolan, thanks! 2003-09-29 05:41:37 +00:00
wcobb
81d7e08156 Deal with the different modelines of similar resolution introduced by
XFree 4.3 by picking up the modes with the highest refresh rates
(set SDL_VIDEO_X11_USE_ALL_MODES=1 to disable this behavior).
From SDL-current (patch by Stephen Anthony).
ok pvalchev@, jolan@
2003-04-22 00:16:53 +00:00
pvalchev
d2aab96ffc nasm -f elf; pt. out by naddy 2003-04-18 02:37:06 +00:00
wcobb
5c15707861 Don't try obtain full-screen modelines on sparc64; ok pvalchev@ 2003-03-02 02:57:16 +00:00
pvalchev
1fd2af048d set default to our libGL library name correctly (the whole way this
works is braindamaged but that is to be fixed later)
fixes "cannot find OpenGL library" errors
2003-02-23 07:58:25 +00:00
wcobb
c480039af9 Update to SDL-1.2.5.
- sdl-config no longer provides -I${LOCALBASE}/include.
- add an `aa' flavor (ASCII art display).
- GNU make is not needed.
- don't use nasm with gcc 3.
- don't install a SEGV handler.
- prevent the joystick driver from picking up usb keyboards.
ok pvalchev@
2002-11-30 11:17:26 +00:00
wcobb
b8f8ca54e2 fix two bogus tests. ok pvalchev@. 2002-05-26 04:11:16 +00:00
pvalchev
5c746576cb match libusbhid API changes; from aaron 2002-05-14 02:10:29 +00:00
pvalchev
c798cd848b Add -L${X11BASE}/lib to sdl-config in when X11 is used, as SDL depends on
libraries there and needs to know the path.  this means sdl-config was
broken for a few days but none of the ports depended on this.
Also bump package revision to p1 for the last couple of fixes to the port.
2002-05-06 04:26:08 +00:00
pvalchev
8bf19b325b Fix bogus sdl-config creation, this fixes some lib depends issues when
non-default flavors are used.
2002-05-03 19:27:17 +00:00
pvalchev
21dd4cdd2b Sync with USB changes 2002-05-03 03:07:52 +00:00
pvalchev
f8d6de97ba the rest of SDL-1.2.4 pieces; i hate cvs 2002-04-21 00:22:37 +00:00
pvalchev
0e67d773b4 SDL-1.2.4 2002-04-21 00:22:13 +00:00
pvalchev
102383a81f Update to SDL-1.2.4 2002-04-21 00:20:08 +00:00
pvalchev
32e784e268 USB uhid(4) joystick support for SDL by Wilbern Cobb <vedge@csoft.org> 2002-02-19 20:51:46 +00:00
pvalchev
f3b06ffb42 Update to SDL-1.2.3. thanks mark for the feedback 2001-12-28 23:42:26 +00:00
pvalchev
d37e409237 no need for this to stay around now since we override libSDL_la_LDFLAGS 2001-08-16 22:06:03 +00:00
pvalchev
87864528ec Pass libSDL_la_LDFLAGS containing -version-info for libtool via MAKE_FLAGS
instead of patching configure unnecessarily.
2001-08-14 22:42:03 +00:00
pvalchev
9fd1c80164 sync with our libtool 2001-08-05 02:04:20 +00:00
pvalchev
dda5abb214 fix for powerpc -stable. 2001-08-01 21:11:31 +00:00
pvalchev
c9ab54043d fix audio format selection code for the native audio driver; from espie@ 2001-07-27 00:04:47 +00:00
pvalchev
c1cb058582 Update to SDL-1.2.2
Includes OpenBSD fixes and cleanups.
Other changes that concern us:
* Now gets correct keyboard state when starting up on X11
* Improved X11 fullscreen support, works better with KDE
2001-07-25 07:58:32 +00:00
pvalchev
8e77d74ad9 When native audio is enabled, define OPENBSD_SUPPORT. This is simpler,
and makes it easier to know when to initialize the corresponding
structures, never touching them if they're empty.
Fits with SDL code-style, fixes things such as soundless builds.
2001-07-20 03:07:07 +00:00
pvalchev
c12912b51f fix dynamic loading on a.out architectures 2001-07-13 21:36:00 +00:00