diff options
author | Michiel Van Der Kolk <not.valid@email.address> | 2005-07-11 15:42:37 +0000 |
---|---|---|
committer | Michiel Van Der Kolk <not.valid@email.address> | 2005-07-11 15:42:37 +0000 |
commit | 9fee0ec4ca0c5b7a334cc29dbb58e76c7a4c736e (patch) | |
tree | 4c304cd4151020bd5494d279ee68a105ae3a5a3a /songdbj/org/tritonus/share/sampled/mixer/TEnumControl.java | |
parent | dfa8ecbe609ca8ea194d08560a44fb9a92e94b4b (diff) | |
download | rockbox-9fee0ec4ca0c5b7a334cc29dbb58e76c7a4c736e.tar.gz rockbox-9fee0ec4ca0c5b7a334cc29dbb58e76c7a4c736e.zip |
Songdb java version, source. only 1.5 compatible
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7101 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'songdbj/org/tritonus/share/sampled/mixer/TEnumControl.java')
-rw-r--r-- | songdbj/org/tritonus/share/sampled/mixer/TEnumControl.java | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/songdbj/org/tritonus/share/sampled/mixer/TEnumControl.java b/songdbj/org/tritonus/share/sampled/mixer/TEnumControl.java new file mode 100644 index 0000000000..2c9132401f --- /dev/null +++ b/songdbj/org/tritonus/share/sampled/mixer/TEnumControl.java | |||
@@ -0,0 +1,92 @@ | |||
1 | /* | ||
2 | * TEnumControl.java | ||
3 | * | ||
4 | * This file is part of Tritonus: http://www.tritonus.org/ | ||
5 | */ | ||
6 | |||
7 | /* | ||
8 | * Copyright (c) 2001 by Matthias Pfisterer | ||
9 | * | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU Library General Public License as published | ||
13 | * by the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU Library General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU Library General Public | ||
22 | * License along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
24 | * | ||
25 | */ | ||
26 | |||
27 | /* | ||
28 | |<--- this code is formatted to fit into 80 columns --->| | ||
29 | */ | ||
30 | |||
31 | package org.tritonus.share.sampled.mixer; | ||
32 | |||
33 | import javax.sound.sampled.EnumControl; | ||
34 | |||
35 | import org.tritonus.share.TDebug; | ||
36 | |||
37 | |||
38 | |||
39 | |||
40 | /** Base class for classes implementing Line. | ||
41 | */ | ||
42 | public class TEnumControl | ||
43 | extends EnumControl | ||
44 | implements TControllable | ||
45 | { | ||
46 | private TControlController m_controller; | ||
47 | |||
48 | |||
49 | |||
50 | public TEnumControl(EnumControl.Type type, | ||
51 | Object[] aValues, | ||
52 | Object value) | ||
53 | { | ||
54 | super(type, | ||
55 | aValues, | ||
56 | value); | ||
57 | if (TDebug.TraceControl) | ||
58 | { | ||
59 | TDebug.out("TEnumControl.<init>: begin"); | ||
60 | } | ||
61 | m_controller = new TControlController(); | ||
62 | if (TDebug.TraceControl) | ||
63 | { | ||
64 | TDebug.out("TEnumControl.<init>: end"); | ||
65 | } | ||
66 | } | ||
67 | |||
68 | |||
69 | |||
70 | public void setParentControl(TCompoundControl compoundControl) | ||
71 | { | ||
72 | m_controller.setParentControl(compoundControl); | ||
73 | } | ||
74 | |||
75 | |||
76 | |||
77 | public TCompoundControl getParentControl() | ||
78 | { | ||
79 | return m_controller.getParentControl(); | ||
80 | } | ||
81 | |||
82 | |||
83 | |||
84 | public void commit() | ||
85 | { | ||
86 | m_controller.commit(); | ||
87 | } | ||
88 | } | ||
89 | |||
90 | |||
91 | |||
92 | /*** TEnumControl.java ***/ | ||