1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package com
.sprintpcs
.media
;
12 import cc
.squirreljme
.runtime
.cldc
.annotation
.Api
;
13 import cc
.squirreljme
.runtime
.cldc
.debug
.Debugging
;
14 import cc
.squirreljme
.runtime
.cldc
.util
.IntegerArrayList
;
20 public DualTone(int __aFreq
, int __bFreq
, int __duration
, int __priority
,
23 throw Debugging
.todo();
27 public DualTone(int[] __aFreq
, int[] __bFreq
, int[] __duration
,
28 int __priority
, int __vibration
)
30 // __aFreq = first frequency??
31 // new int[]{1047, 1109, 1175, 1245, 1319, 1397, 1480, 1568, ...};
32 // __bFreq = second frequency??
33 // new int[]{1047, 988, 932, 880, 830, 784, 740, 698, 659, ...};
34 // __duration = duration??
35 // new int[]{120, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 400};
36 // __priority = always zero??
37 // __vibration = always one or zero??
39 if (__aFreq
== null || __bFreq
== null || __duration
== null)
40 throw Debugging
.todo("Throw NullPointerException???");
42 if (__aFreq
.length
!= __bFreq
.length
||
43 __aFreq
.length
!= __duration
.length
)
44 throw Debugging
.todo("Unequal lengths???");
47 throw Debugging
.todo("D is not zero???");
49 if (__vibration
!= 0 && __vibration
!= 1)
50 throw Debugging
.todo("E is not zero or one???");
52 Debugging
.todoNote("DualTone(%s, %s, %s, %d, %d)",
53 IntegerArrayList
.toString(__aFreq
),
54 IntegerArrayList
.toString(__bFreq
),
55 IntegerArrayList
.toString(__duration
),
56 __priority
, __vibration
);