-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMFi.java
55 lines (46 loc) · 1.4 KB
/
MFi.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Copyright (c) 2006 by Naohide Sano, All rights reserved.
*
* Programmed by Naohide Sano
*/
package vavi.sound.sampled.mfi;
import java.util.Map;
import javax.sound.sampled.AudioFileFormat.Type;
/**
* MFi.
*
* TODO props should be AudioFormat's props
*
* @author <a href="mailto:umjammer@gmail.com">Naohide Sano</a> (nsano)
* @version 0.00 060125 nsano initial version <br>
*/
public class MFi extends Type {
/**
* @param properties keys are followings.
* <pre>
* "mfi.directory" String: output base directory
* "mfi.base" String: output file template (use {@link String#format(String, Object...)})
* "mfi.model" String: model
* "mfi.time" float: dividing time in [sec]
* "mfi.sampleRate" int: ADPCM sampling rate [Hz]
* "mfi.bits" int: ADPCM sampling bits
* "mfi.channels" int: ADPCM channels
* "mfi.masterVolume" int: master volume in [%]
* "mfi.adpcmVolume" int adpcm volume in [%]
* </pre>
*/
public MFi(Map<String, Object> properties) {
super("Melody Format for i-mode", "mld");
this.properties = properties;
}
/** */
private final Map<String, Object> properties;
/** */
public Map<String, Object> properties() {
return properties;
}
/** */
public Object getProperty(String key) {
return properties.get(key);
}
}