changeset 42:c852da081533 trunk

[svn] - cleanups
author nenolod
date Wed, 20 Sep 2006 00:51:18 -0700
parents f46ea650face
children 3e9c308cea60
files ChangeLog src/CoreAudio/audio.c
diffstat 2 files changed, 11 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Sep 20 00:48:59 2006 -0700
+++ b/ChangeLog	Wed Sep 20 00:51:18 2006 -0700
@@ -1,3 +1,12 @@
+2006-09-20 07:48:59 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [82]
+  - release the audio buffer used by HAL when we close the device.
+  
+
+  Changes:        Modified:
+  +3 -1           trunk/src/CoreAudio/audio.c  
+
+
 2006-09-20 01:26:42 +0000  Giacomo Lozito <james@develia.org>
   revision [80]
   - fixed some issues for amidiplug compilation after migraton in audacious-plugins (backends were not compiled and amidiplug was uselessly installed twice on make install)
--- a/src/CoreAudio/audio.c	Wed Sep 20 00:48:59 2006 -0700
+++ b/src/CoreAudio/audio.c	Wed Sep 20 00:51:18 2006 -0700
@@ -429,26 +429,10 @@
 
 void osx_pause(short p)
 {
-	//printf("osx_pause(): %d\n",p);
-
 	if (p == TRUE)
-	{
-		if (AudioDeviceStop(device_id, play_callback))
-		{
-			//printf("failed to stop audio device.\n");
-		}
-
-		//printf("PAUSED!\n");
-	}
+		AudioDeviceStop(device_id, play_callback);
 	else
-	{
-		if (AudioDeviceStart(device_id, play_callback))
-		{
-			//printf("failed to start audio device.\n");
-		}
-
-		//printf("UNPAUSED!\n");
-	}
+		AudioDeviceStart(device_id, play_callback);
 
 	paused = p;
 }