Torbjörn Andersson 7404d5662d Made read() return the number of bytes that were actually read, rather than
the number that was requested. A lot of our code obviously assumes this
behaviour, and the MP3 file player depends on it because otherwise, when
reaching the end of the file, it will think it read a full buffer, when in
fact it only got part of it and the rest is the remains from the previous
read.

This would cause a brief note from earlier in the track at the end of the
MI1 chapter one screen. Probably other cases as well.

Of course, this may cause regressions but only - I think - if the code was
buggy to begin with.

svn-id: r8721
2003-07-03 07:03:18 +00:00
..
2003-05-21 16:48:25 +00:00
2003-03-06 21:46:56 +00:00
2003-06-22 14:18:33 +00:00
2003-03-06 21:46:56 +00:00
2003-03-06 21:46:56 +00:00
2003-05-21 17:00:00 +00:00
2003-06-14 23:05:40 +00:00
2003-05-29 11:15:32 +00:00
2003-05-21 16:59:51 +00:00
2003-05-21 16:59:51 +00:00
2003-06-19 15:14:17 +00:00
2003-05-29 22:34:35 +00:00
2003-05-21 16:59:51 +00:00
2003-06-14 18:15:14 +00:00