Sam Lantinga <slouken@libsdl.org> [Mon, 05 Jan 2004 00:57:51 +0000] rev 773
Date: Sun, 4 Jan 2004 23:48:19 +0100
From: Max Horn
Subject: Re: Again Audio CD patch
Am 04.01.2004 um 22:38 schrieb Sam Lantinga:
>
> Okay, I fixed the buffering problems by simply using a 4 second buffer
> instead of a 1 second buffer. However, using your code I can't play an
> entire CD - the playback stops after the first song.
>
Found the problem: FSReadFork returns eofErr when the file is finished.
However, we check its return value for errors, and if anything but
noErr occurs, the reader thread aborts its current iteration. That is
bad, because it aborts before it can ever set the flag which tells that
the file is over (also, any remaining data which FSRead did return is
lost - so you'd not hear about to 4 seconds from the end of the file.
Furthermore, the computed data size was 8 bytes to high (I forgot to
account for the fact that the size of an (A)IFF chunk always contains
the chunk header & size fields, too). This is enough to make it work.
However, the end condition is rather fragile, so I tuned some other
things to be pessimistic (check for <= 0 instead of == 0, when eofErr
is encountered enforce mReadFilePosition == mFileLength). You never
know...
The attached patch fixes the issue for me.
Sam Lantinga <slouken@libsdl.org> [Sun, 04 Jan 2004 21:32:47 +0000] rev 772
Fix buffer underrun problems on slow iBooks
Sam Lantinga <slouken@libsdl.org> [Sun, 04 Jan 2004 18:50:26 +0000] rev 771
Fixed track detection on MacOS X 10.1
Sam Lantinga <slouken@libsdl.org> [Sun, 04 Jan 2004 17:04:54 +0000] rev 770
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Sun, 04 Jan 2004 16:49:27 +0000] rev 769
Updated copyright information for 2004 (Happy New Year!)
Sam Lantinga <slouken@libsdl.org> [Sun, 04 Jan 2004 16:20:28 +0000] rev 768
Max has been reworking this code so it works on MacOS X 10.1
Sam Lantinga <slouken@libsdl.org> [Sun, 04 Jan 2004 15:57:16 +0000] rev 767
Date: Mon, 17 Nov 2003 21:59:24 -0800
From: Pete Shinners
Subject: [SDL] directfb cursor patch
here is a quick and dirty patch that allows directfb to change the
visibility of the cursor. this display backend still has no way to change
the actual cursor shape, but being able to set the cursor visibility is a
simple change that should offer some benefits.
the code was largely based on the cursor code for other sdl backends. and
this documentation.
http://directfb.org/documentation/DirectFB_Reference/IDirectFBDisplayLayer_SetCursorOpacity.html
Sam Lantinga <slouken@libsdl.org> [Sun, 04 Jan 2004 15:48:44 +0000] rev 766
Date: Wed, 26 Nov 2003 01:52:02 +0800
From: "Andy Pfiffer"
Subject: [SDL] patch: PocketPC 2000 diffs for release_1_2_6
I was making a backup of my current workspace of SDL for PocketPC,
and thought I would send out my diffs.
Apologies in advance if the patch has become whitespace mangled.
These diffs are relative to CVS tag release_1_2_6, and contain (I think)
all changes that have been mentioned on the mailing list in the last
few months.
I only have PocketPC 2000 & an ARM-based device (iPaq 3635), and I
only use Embedded Visual Tools 3.0, so I can't say for sure if it
breaks other PocketPC 200[023] builds.
Sam Lantinga <slouken@libsdl.org> [Sun, 04 Jan 2004 15:40:50 +0000] rev 765
Editors Note: The original patch was modified to use SDL_Delay() instead of
nanosleep because nanosleep may not be portable to all systems
using SDL with the ALSA backend. This may be a moot point with
the switch to blocking writes anyway...
Date: Sat, 27 Dec 2003 21:47:36 +0100
From: Michel Daenzer
To: Debian Bug Tracking System
Subject: [SDL] Bug#225252: [PATCH] ALSA fixes
Package: libsdl1.2debian-all
Version: 1.2.6-2
Severity: normal
Tags: patch
For SDL 1.2.6, the ALSA backend was changed to call snd_pcm_open() with
SND_PCM_NONBLOCK. That's a good idea per se, however, it causes high CPU
usage, interrupted sound and stuttering in some games here. Taking a nanosleep
whenever snd_pcm_writei() returns -EAGAIN fixes this, but I think it's more
efficient to use blocking mode for the actual sound playback. Feedback from the
SDL and ALSA lists appreciated.
The patch also fixes the default ALSA device to be used.
Sam Lantinga <slouken@libsdl.org> [Sun, 04 Jan 2004 15:18:08 +0000] rev 764
Added function to create RWops from const memory: SDL_RWFromConstMem()