changeset 23006:512a16ec4bcb

Mono audio should be supported by NAS, too. Patch by Erik Auerswald {auerswal -at- unix-ag <dot> uni-kl de}
author reimar
date Thu, 19 Apr 2007 16:28:59 +0000
parents 661085642a71
children 7bf28d8e7068
files libao2/ao_nas.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_nas.c	Wed Apr 18 19:25:52 2007 +0000
+++ b/libao2/ao_nas.c	Thu Apr 19 16:28:59 2007 +0000
@@ -445,7 +445,7 @@
 		return 0;
 	}
 
-	while (channels>1) {
+	while (channels>0) {
 		nas_data->dev = nas_find_device(nas_data->aud, channels);
 		if (nas_data->dev != AuNone &&
 		    ((nas_data->flow = AuCreateFlow(nas_data->aud, NULL)) != 0))