aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/sound
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2005-01-11 14:25:10 +0000
committerHolger Zickner <[email protected]>2005-01-11 14:25:10 +0000
commit294c01a61bfd54e7e796e4075507c95ad91cc625 (patch)
tree6d31123e255eeeefd508925e9c8615f696e54aa4 /src/jake2/sound
parent8d2e627be34aad0fad107a177432a41b1d5fc1c0 (diff)
dynamic sound menu
Diffstat (limited to 'src/jake2/sound')
-rw-r--r--src/jake2/sound/S.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/jake2/sound/S.java b/src/jake2/sound/S.java
index 64d6957..af65dbe 100644
--- a/src/jake2/sound/S.java
+++ b/src/jake2/sound/S.java
@@ -2,7 +2,7 @@
* S.java
* Copyright (C) 2003
*
- * $Id: S.java,v 1.5 2004-12-16 21:11:56 cawe Exp $
+ * $Id: S.java,v 1.6 2005-01-11 14:25:10 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -205,4 +205,12 @@ public class S {
public static String getDriverName() {
return impl.getName();
}
+
+ public static String[] getDriverNames() {
+ String[] names = new String[drivers.size()];
+ for (int i = 0; i < names.length; i++) {
+ names[i] = ((Sound)drivers.get(i)).getName();
+ }
+ return names;
+ }
} \ No newline at end of file