Commit Graph

31 Commits

Author SHA1 Message Date
Sam Lantinga
9abfdc34dd Fixed playback problems with MacOSX 10.1 2004-01-05 12:08:38 +00:00
Sam Lantinga
5004d1c95d 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.
2004-01-05 00:57:51 +00:00
Sam Lantinga
6a7c426236 Fix buffer underrun problems on slow iBooks 2004-01-04 21:32:47 +00:00
Sam Lantinga
a0db91cab5 Fixed track detection on MacOS X 10.1 2004-01-04 18:50:26 +00:00
Sam Lantinga
32719e7429 Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
Sam Lantinga
6510cc9eff Max has been reworking this code so it works on MacOS X 10.1 2004-01-04 16:20:28 +00:00
Sam Lantinga
fb64cdce92 *** empty log message *** 2003-12-10 12:32:38 +00:00
Sam Lantinga
c675c64d80 *** empty log message *** 2003-10-06 09:03:02 +00:00
Patrice Mandin
3e38416231 Update MiNT CD-ROM driver 2003-10-01 07:52:33 +00:00
Patrice Mandin
f2c7d6a938 Atari CD-ROM support 2003-09-27 08:20:26 +00:00
Sam Lantinga
4b88b12551 Added audio and CD-ROM support for OSF/Tru64 (thanks Hayashi!) 2003-07-22 14:01:21 +00:00
Sam Lantinga
71fb0d86d2 *** empty log message *** 2003-07-22 05:29:48 +00:00
Sam Lantinga
034f135e5e *** empty log message *** 2003-06-28 17:03:57 +00:00
Sam Lantinga
a4f058b055 Oops... 2003-04-26 06:40:01 +00:00
Sam Lantinga
ca4e4bfbea Added MacOS X CD-ROM audio support (thanks Max and Darrell) 2003-04-15 16:33:56 +00:00
Sam Lantinga
93ddac21c1 Date: Thu, 16 Jan 2003 13:48:31 +0200
From: "Mike Gorchak"
Subject: All QNX patches

whole patches concerning QNX. Almost all code has been rewritten by Julian
and me. Added initial support for hw overlays in QNX and many many others
fixes.

P.S. This patches has been reviewed by Dave Rempel from QSSL and included in
SDL 1.2.5 distribution, which coming on 3rd party CD for newest 6.2.1
version of QNX, which will be available soon.
2003-01-20 01:38:37 +00:00
Sam Lantinga
fd756e4973 Added initial support for Dreamcast (thanks HERO!) 2002-10-05 16:50:56 +00:00
Sam Lantinga
f8657b16d2 Added check for ENOMEDIUM to the Linux CDROM code 2002-06-10 20:37:39 +00:00
Sam Lantinga
df4885048e Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
Sam Lantinga
acfcfd3e44 Updated the source with the correct e-mail address 2001-12-14 12:38:15 +00:00
Sam Lantinga
e3a9b8d5a8 Fix crash with Linux supermount fstab entries (thanks Erno!) 2001-12-05 23:49:09 +00:00
Sam Lantinga
f8e6b4ee92 Oops, forgot a directory here... 2001-11-08 07:27:25 +00:00
Sam Lantinga
7fecde14df Fixed last track time calculation (thanks Tchi Southivong) 2001-09-30 19:07:56 +00:00
Sam Lantinga
1db106b3c1 Fixed resuming a paused CD on Win2K (thanks Aragorn) 2001-09-23 20:51:36 +00:00
Sam Lantinga
e889a75dbc Added CD-ROM support for BSD/OS (thanks Steven!) 2001-09-13 15:57:48 +00:00
Sam Lantinga
49708f7397 Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!) 2001-08-18 22:03:11 +00:00
Sam Lantinga
7bd83346de Fixed potential buffer overflow in Linux CD code (thanks Ryan!) 2001-08-09 05:34:17 +00:00
Sam Lantinga
be67787cfb Applied Paul Jenner's patches to fix "make distcheck" and "make rpm" 2001-08-09 05:31:32 +00:00
Sam Lantinga
be3ec68154 Date: Wed, 9 May 2001 18:03:20 -0600
From: Peter Valchev <pvalchev@openbsd.org>
Subject: openbsd patches

- The other one dealing with the cdrom... the most likely place on an
OpenBSD system for a cdrom is cd?c, my mistake the first time.
2001-05-10 20:29:31 +00:00
Sam Lantinga
ffae27155e Changes since SDL 1.2.0 release 2001-04-26 16:50:19 +00:00
Sam Lantinga
5d2015c741 Initial revision 2001-04-26 16:45:43 +00:00