/* */ package quicktime.std.music;
/* */
/* */ import quicktime.QTException;
/* */ import quicktime.QTSession;
/* */ import quicktime.std.StdQTException;
/* */ import quicktime.std.comp.Component;
/* */ import quicktime.util.QTUtils;
/* */
/* */ public final class MusicComponent extends Component
/* */ {
/* 38 */ private static boolean apriori = QTSession.apriori();
/* */
/* */ /** @deprecated */
/* */ public MusicComponent()
/* */ throws QTException
/* */ {
/* 46 */ this(0);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public MusicComponent(int paramInt)
/* */ throws QTException
/* */ {
/* 54 */ super(1836413801, paramInt);
/* */ }
/* */
/* */ MusicComponent(int paramInt, Object paramObject) {
/* 58 */ super(paramInt, paramObject);
/* */ }
/* */
/* */ public SynthesizerDescription getDescription()
/* */ throws StdQTException
/* */ {
/* 67 */ SynthesizerDescription localSynthesizerDescription = new SynthesizerDescription();
/* 68 */ StdQTException.checkError(MusicGetDescription(_ID(), localSynthesizerDescription.getBytes()));
/* */
/* 71 */ return localSynthesizerDescription;
/* */ }
/* */
/* */ public AtomicInstrument getPartAtomicInstrument(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 83 */ int[] arrayOfInt = { 0 };
/* 84 */ StdQTException.checkError(MusicGetPartAtomicInstrument(_ID(), paramInt1, arrayOfInt, paramInt2));
/* */
/* 87 */ if (arrayOfInt[0] == 0)
/* 88 */ return null;
/* 89 */ return new AtomicInstrument(arrayOfInt[0], this);
/* */ }
/* */
/* */ public int getKnob(int paramInt)
/* */ throws StdQTException
/* */ {
/* 101 */ int i = MusicGetKnob(_ID(), paramInt);
/* 102 */ if ((i >>> 16 == 32768) && ((i | 0xFFFF) != 0))
/* 103 */ throw new StdQTException(i | 0xFFFF);
/* 104 */ return i;
/* */ }
/* */
/* */ public void setKnob(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 114 */ StdQTException.checkError(MusicSetKnob(_ID(), paramInt1, paramInt2));
/* */ }
/* */
/* */ public String getPartName(int paramInt)
/* */ throws StdQTException
/* */ {
/* 126 */ byte[] arrayOfByte = new byte[32];
/* 127 */ StdQTException.checkError(MusicGetPartName(_ID(), paramInt, arrayOfByte));
/* */
/* 130 */ return QTUtils.PString2String(arrayOfByte, 0);
/* */ }
/* */
/* */ public void setPartName(int paramInt, String paramString)
/* */ throws StdQTException
/* */ {
/* 140 */ StdQTException.checkError(MusicSetPartName(_ID(), paramInt, QTUtils.String2PString(paramString, 31)));
/* */ }
/* */
/* */ public void setMasterTune(float paramFloat)
/* */ throws StdQTException
/* */ {
/* 152 */ StdQTException.checkError(MusicSetMasterTune(_ID(), QTUtils.X2Fix(paramFloat)));
/* */ }
/* */
/* */ public float getMasterTune()
/* */ throws StdQTException
/* */ {
/* 164 */ int i = MusicGetMasterTune(_ID());
/* 165 */ if (i < 0)
/* 166 */ throw new StdQTException(i);
/* 167 */ return QTUtils.Fix2X(i);
/* */ }
/* */
/* */ public KnobDescription getInstrumentKnobDescrption(int paramInt)
/* */ throws StdQTException
/* */ {
/* 177 */ KnobDescription localKnobDescription = new KnobDescription();
/* 178 */ StdQTException.checkError(MusicGetInstrumentKnobDescription(_ID(), paramInt, localKnobDescription.getBytes()));
/* */
/* 181 */ return localKnobDescription;
/* */ }
/* */
/* */ public KnobDescription getDrumKnobDescrption(int paramInt)
/* */ throws StdQTException
/* */ {
/* 191 */ KnobDescription localKnobDescription = new KnobDescription();
/* 192 */ StdQTException.checkError(MusicGetDrumKnobDescription(_ID(), paramInt, localKnobDescription.getBytes()));
/* */
/* 195 */ return localKnobDescription;
/* */ }
/* */
/* */ public KnobDescription getKnobDescrption(int paramInt)
/* */ throws StdQTException
/* */ {
/* 205 */ KnobDescription localKnobDescription = new KnobDescription();
/* 206 */ StdQTException.checkError(MusicGetKnobDescription(_ID(), paramInt, localKnobDescription.getBytes()));
/* */
/* 209 */ return localKnobDescription;
/* */ }
/* */
/* */ private static native int MusicGetDescription(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int MusicGetPartAtomicInstrument(int paramInt1, int paramInt2, int[] paramArrayOfInt, int paramInt3);
/* */
/* */ private static native int MusicGetPartName(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/* */
/* */ private static native int MusicSetPartName(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/* */
/* */ private static native int MusicGetKnob(int paramInt1, int paramInt2);
/* */
/* */ private static native int MusicSetKnob(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int MusicGetMasterTune(int paramInt);
/* */
/* */ private static native int MusicSetMasterTune(int paramInt1, int paramInt2);
/* */
/* */ private static native int MusicGetInstrumentKnobDescription(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/* */
/* */ private static native int MusicGetDrumKnobDescription(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/* */
/* */ private static native int MusicGetKnobDescription(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.music.MusicComponent
* JD-Core Version: 0.6.2
*/