From 032f74dd1a205a3e2d032e0d0deb60eac8b42de4 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Mon, 29 Jun 2009 12:48:12 +0000 Subject: implemented cheat search git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@23829 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfsound/alsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/dfsound/alsa.c') diff --git a/plugins/dfsound/alsa.c b/plugins/dfsound/alsa.c index 5daa2857..e9ea0a3b 100644 --- a/plugins/dfsound/alsa.c +++ b/plugins/dfsound/alsa.c @@ -145,8 +145,8 @@ unsigned long SoundGetBytesBuffered(void) if (handle == NULL) // failed to open? return SOUNDSIZE; l = snd_pcm_avail_update(handle); - if(l < 0) return 0; - if(l < buffer_size / 2) // can we write in at least the half of fragments? + if (l < 0) return 0; + if (l < buffer_size / 2) // can we write in at least the half of fragments? l = SOUNDSIZE; // -> no? wait else l = 0; // -> else go on -- cgit v1.2.3