diff libao2/ao_sgi.c @ 14849:d313f591d1a4

aos should respect the immed uninit flag (quit immediatly vs waiting till file is played to end).
author reimar
date Sun, 27 Feb 2005 23:06:32 +0000
parents cb5fbade8a5c
children 27a2bc4aad72
line wrap: on
line diff
--- a/libao2/ao_sgi.c	Sun Feb 27 22:36:04 2005 +0000
+++ b/libao2/ao_sgi.c	Sun Feb 27 23:06:32 2005 +0000
@@ -126,6 +126,7 @@
   mp_msg(MSGT_AO, MSGL_INFO, MSGTR_AO_SGI_Uninit);
 
   if (ao_port) {
+    if (!immed)
     while(alGetFilled(ao_port) > 0) sginap(1);  
     alClosePort(ao_port);
     alFreeConfig(ao_config);