notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FSkip behaviour changed, RefreshLine_PPU_hook optimized
[fceu.git]
/
drivers
/
cli
/
sdl-sound.c
diff --git
a/drivers/cli/sdl-sound.c
b/drivers/cli/sdl-sound.c
index
bbe716b
..
f8ab865
100644
(file)
--- a/
drivers/cli/sdl-sound.c
+++ b/
drivers/cli/sdl-sound.c
@@
-42,11
+42,11
@@
void fillaudio(void *udata, uint8 *stream, int len)
}
}
}
}
-void WriteSound(int
32
*Buffer, int Count, int NoWaiting)
+void WriteSound(int
16
*Buffer, int Count, int NoWaiting)
{
while(Count)
{
{
while(Count)
{
- while(writeoffs==((readoffs-BSIZE)&32767))
+ while(writeoffs==((readoffs-BSIZE)&32767))
if(NoWaiting)
return;
AudioBuf[writeoffs]=*Buffer;
if(NoWaiting)
return;
AudioBuf[writeoffs]=*Buffer;
@@
-62,7
+62,7
@@
int InitSound(void)
{
SDL_AudioSpec spec;
{
SDL_AudioSpec spec;
- if(_lbufsize<_ebufsize)
+ if(_lbufsize<_ebufsize)
{
puts("Ack, lbufsize must not be smaller than ebufsize!");
return(0);
{
puts("Ack, lbufsize must not be smaller than ebufsize!");
return(0);