3 |
|
* |
4 |
|
* Adapted from Frodo's Solaris sound routines by Marc Chabanas |
5 |
|
* |
6 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
6 |
> |
* Basilisk II (C) 1997-2000 Christian Bauer |
7 |
|
* |
8 |
|
* This program is free software; you can redistribute it and/or modify |
9 |
|
* it under the terms of the GNU General Public License as published by |
210 |
|
write(fd, Mac2HostAddr(ReadMacInt32(apple_stream_info + scd_buffer)), sound_buffer_size); |
211 |
|
else { |
212 |
|
// Last buffer |
213 |
< |
memcpy(last_buffer, Mac2HostAddr(ReadMacInt32(apple_stream_info + scd_buffer)), work_size); |
213 |
> |
Mac2Host_memcpy(last_buffer, ReadMacInt32(apple_stream_info + scd_buffer), work_size); |
214 |
|
memset((uint8 *)last_buffer + work_size, 0, sound_buffer_size - work_size); |
215 |
|
write(fd, last_buffer, sound_buffer_size); |
216 |
|
} |