Source code: com/nokia/mid/sound/Sound.java
1 /*
2 * Nokia API for MicroEmulator
3 * Copyright (C) 2003 Markus Heberling <markus@heberling.net>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19
20 package com.nokia.mid.sound;
21
22
23 // Only empty methods, sound is currently not supported
24
25 public class Sound
26 {
27 public static final int SOUND_PLAYING = 0;
28 public static final int SOUND_STOPPED = 1;
29 public static final int SOUND_UNINITIALIZED = 3;
30 public static final int FORMAT_TONE = 1;
31 public static final int FORMAT_WAV = 5;
32
33
34 public Sound(byte data[], int type)
35 {
36 }
37
38
39 public Sound(int freq, long duration)
40 {
41 }
42
43
44 public static int getConcurrentSoundCount(int type)
45 {
46 throw new java.lang.IllegalArgumentException();
47 }
48
49
50 public int getGain()
51 {
52 return 0;
53 }
54
55
56 public void setGain(int gain)
57 {
58 }
59
60
61 public int getState()
62 {
63 return SOUND_STOPPED;
64 }
65
66
67 public static int[] getSupportedFormats()
68 {
69 return new int[0];
70 }
71
72
73 public void init(byte data[], int type)
74 {
75 }
76
77
78 public void init(int freq, long duration)
79 {
80 }
81
82
83 public synchronized void play(int loop)
84 {
85 }
86
87
88 public void stop()
89 {
90 }
91
92
93 public void release()
94 {
95 }
96
97
98 public void resume()
99 {
100 }
101
102
103 public void setSoundListener(SoundListener listener)
104 {
105 }
106
107 }