/* */ package quicktime.std.sg;
/* */
/* */ import quicktime.QTException;
/* */ import quicktime.QTSession;
/* */ import quicktime.sound.SPBDevice;
/* */ import quicktime.std.StdQTException;
/* */ import quicktime.std.movies.media.SampleDescription;
/* */ import quicktime.std.movies.media.SoundDescription;
/* */ import quicktime.util.QTUtils;
/* */
/* */ public final class SGSoundChannel extends AudioChannel
/* */ {
/* 29 */ private static boolean apriori = QTSession.apriori();
/* */
/* */ SGSoundChannel(int paramInt, SequenceGrabber paramSequenceGrabber) throws StdQTException
/* */ {
/* 33 */ super(paramInt, paramSequenceGrabber);
/* */ }
/* */
/* */ public SGSoundChannel(SequenceGrabber paramSequenceGrabber)
/* */ throws StdQTException
/* */ {
/* 44 */ super(paramSequenceGrabber, 1936684398);
/* */ }
/* */
/* */ final SampleDescription makeDescription() throws QTException
/* */ {
/* 49 */ return new SoundDescription(0);
/* */ }
/* */
/* */ public final SoundDescription getSoundDescription()
/* */ throws QTException
/* */ {
/* 58 */ return (SoundDescription)getSampleDescription();
/* */ }
/* */
/* */ public void setSoundInputParameters(int paramInt1, int paramInt2, int paramInt3)
/* */ throws StdQTException
/* */ {
/* 72 */ int i = SGSetSoundInputParameters(_ID(), (short)paramInt1, (short)paramInt2, paramInt3);
/* */
/* 76 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public SGChannelInfo getSoundInputParameters()
/* */ throws StdQTException
/* */ {
/* 87 */ short[] arrayOfShort1 = new short[1];
/* 88 */ short[] arrayOfShort2 = new short[1];
/* 89 */ int[] arrayOfInt = new int[1];
/* 90 */ int i = SGGetSoundInputParameters(_ID(), arrayOfShort1, arrayOfShort2, arrayOfInt);
/* */
/* 94 */ StdQTException.checkError(i);
/* */
/* 96 */ return new SGChannelInfo(arrayOfShort1[0], arrayOfShort2[0], arrayOfInt[0]);
/* */ }
/* */
/* */ public void setSoundInputRate(float paramFloat)
/* */ throws StdQTException
/* */ {
/* 105 */ int i = SGSetSoundInputRate(_ID(), QTUtils.X2UFix(paramFloat));
/* 106 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public float getSoundInputRate()
/* */ throws StdQTException
/* */ {
/* 115 */ int i = SGGetSoundInputRate(_ID());
/* 116 */ return QTUtils.UFix2X(i);
/* */ }
/* */
/* */ public SPBDevice getInputDriver()
/* */ throws StdQTException
/* */ {
/* 125 */ return SPBDevice.fromSoundChannel(this);
/* */ }
/* */
/* */ public void setRecordChunkSize(int paramInt)
/* */ throws StdQTException
/* */ {
/* 134 */ int i = SGSetSoundRecordChunkSize(_ID(), paramInt);
/* 135 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int getRecordChunkSize()
/* */ throws StdQTException
/* */ {
/* 144 */ int i = SGGetSoundRecordChunkSize(_ID());
/* 145 */ return i;
/* */ }
/* */
/* */ public void setInputDriver(String paramString)
/* */ throws StdQTException
/* */ {
/* 155 */ int i = SGSetSoundInputDriver(_ID(), QTUtils.String2PString(paramString, 255));
/* 156 */ StdQTException.checkError(i);
/* */
/* 158 */ i = SGSoundInputDriverChanged(_ID());
/* 159 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ private static native int SGSetSoundInputParameters(int paramInt1, short paramShort1, short paramShort2, int paramInt2);
/* */
/* */ private static native int SGGetSoundInputParameters(int paramInt, short[] paramArrayOfShort1, short[] paramArrayOfShort2, int[] paramArrayOfInt);
/* */
/* */ private static native int SGSetSoundInputRate(int paramInt1, int paramInt2);
/* */
/* */ private static native int SGGetSoundInputRate(int paramInt);
/* */
/* */ private static native int SGSetSoundInputDriver(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int SGSoundInputDriverChanged(int paramInt);
/* */
/* */ private static native int SGSetSoundRecordChunkSize(int paramInt1, int paramInt2);
/* */
/* */ private static native int SGGetSoundRecordChunkSize(int paramInt);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.sg.SGSoundChannel
* JD-Core Version: 0.6.2
*/