/hg/icedtea6: overlays/openjdk/jdk/test/com: Removed because cor...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Thu Apr 29 00:01:55 PDT 2010
changeset f882c327935a in /hg/icedtea6
details: http://icedtea.classpath.org/hg/icedtea6?cmd=changeset;node=f882c327935a
author: ptisnovs
date: Thu Apr 29 08:59:57 2010 +0200
overlays/openjdk/jdk/test/com: Removed because correct version of
these tests are now available in OpenJDK itself.
diffstat:
245 files changed, 7 insertions(+), 18407 deletions(-)
AUTHORS | 1
ChangeLog | 6
overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatConverter/GetFormat.java | 41 -
overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatConverter/ToFloatArray.java | 162 ------
overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/Available.java | 81 ---
overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/Close.java | 72 ---
overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/GetFormat.java | 74 ---
overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/GetFrameLength.java | 74 ---
overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/MarkSupported.java | 74 ---
overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/Read.java | 83 ---
overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/ReadFloatArray.java | 81 ---
overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/ReadFloatArrayIntInt.java | 83 ---
overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/Reset.java | 87 ---
overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/Skip.java | 83 ---
overlays/openjdk/jdk/test/com/sun/media/sound/DLSSoundbankReader/TestGetSoundbankFile.java | 52 --
overlays/openjdk/jdk/test/com/sun/media/sound/DLSSoundbankReader/TestGetSoundbankInputStream.java | 63 --
overlays/openjdk/jdk/test/com/sun/media/sound/DLSSoundbankReader/TestGetSoundbankInputStream2.java | 119 -----
overlays/openjdk/jdk/test/com/sun/media/sound/DLSSoundbankReader/TestGetSoundbankUrl.java | 54 --
overlays/openjdk/jdk/test/com/sun/media/sound/EmergencySoundbank/TestCreateSoundbank.java | 59 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/GetInputStream.java | 91 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/GetRoot.java | 82 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/Load.java | 89 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/LoadAll.java | 93 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/NewModelByteBufferByteArray.java | 84 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/NewModelByteBufferByteArrayIntInt.java | 86 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/NewModelByteBufferFile.java | 88 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/NewModelByteBufferFileLongLong.java | 88 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/RandomFileInputStream/Available.java | 107 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/RandomFileInputStream/Close.java | 104 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/RandomFileInputStream/MarkReset.java | 129 -----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/RandomFileInputStream/MarkSupported.java | 106 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/RandomFileInputStream/Read.java | 117 -----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/RandomFileInputStream/ReadByte.java | 118 -----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/RandomFileInputStream/ReadByteIntInt.java | 118 -----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/RandomFileInputStream/Skip.java | 131 -----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/SubbufferLong.java | 92 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/SubbufferLongLong.java | 92 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/SubbufferLongLongBoolean.java | 98 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/Unload.java | 83 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBuffer/WriteTo.java | 92 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBufferWavetable/GetAttenuation.java | 97 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBufferWavetable/GetChannels.java | 97 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBufferWavetable/GetLoopLength.java | 96 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBufferWavetable/GetLoopStart.java | 96 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBufferWavetable/GetPitchCorrection.java | 97 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBufferWavetable/NewModelByteBufferWavetableModelByteBuffer.java | 94 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBufferWavetable/NewModelByteBufferWavetableModelByteBufferAudioFormat.java | 94 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBufferWavetable/NewModelByteBufferWavetableModelByteBufferAudioFormatFloat.java | 94 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBufferWavetable/NewModelByteBufferWavetableModelByteBufferFloat.java | 96 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBufferWavetable/Open.java | 92 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBufferWavetable/Set8BitExtensionBuffer.java | 119 -----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelByteBufferWavetable/SetLoopType.java | 96 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelDestination/NewModelDestination.java | 46 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelDestination/NewModelDestinationModelIdentifier.java | 46 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelDestination/SetIdentifier.java | 45 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelDestination/SetTransform.java | 46 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelIdentifier/EqualsObject.java | 54 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelIdentifier/NewModelIdentifierString.java | 48 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelIdentifier/NewModelIdentifierStringInt.java | 48 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelIdentifier/NewModelIdentifierStringString.java | 48 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelIdentifier/NewModelIdentifierStringStringInt.java | 48 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelIdentifier/SetInstance.java | 45 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelIdentifier/SetObject.java | 45 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelIdentifier/SetVariable.java | 45 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelPerformer/GetOscillators.java | 44 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelPerformer/SetConnectionBlocks.java | 48 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelPerformer/SetDefaultConnectionsEnabled.java | 49 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelPerformer/SetExclusiveClass.java | 45 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelPerformer/SetKeyFrom.java | 45 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelPerformer/SetKeyTo.java | 45 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelPerformer/SetName.java | 45 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelPerformer/SetSelfNonExclusive.java | 48 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelPerformer/SetVelFrom.java | 45 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelPerformer/SetVelTo.java | 45 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelSource/NewModelSource.java | 48 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelSource/NewModelSourceModelIdentifier.java | 46 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelSource/NewModelSourceModelIdentifierBoolean.java | 49 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelSource/NewModelSourceModelIdentifierBooleanBoolean.java | 51 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelSource/NewModelSourceModelIdentifierBooleanBooleanInt.java | 56 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelSource/NewModelSourceModelIdentifierModelTransform.java | 47 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelSource/SetIdentifier.java | 45 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelSource/SetTransform.java | 46 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelStandardTransform/NewModelStandardTransform.java | 48 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelStandardTransform/NewModelStandardTransformBoolean.java | 48 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelStandardTransform/NewModelStandardTransformBooleanBoolean.java | 50 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelStandardTransform/NewModelStandardTransformBooleanBooleanInt.java | 51 --
overlays/openjdk/jdk/test/com/sun/media/sound/ModelStandardTransform/SetDirection.java | 45 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelStandardTransform/SetPolarity.java | 45 -
overlays/openjdk/jdk/test/com/sun/media/sound/ModelStandardTransform/SetTransform.java | 74 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelStandardTransform/TransformAbsolute.java | 73 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelStandardTransform/TransformConcave.java | 98 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelStandardTransform/TransformConvex.java | 98 ----
overlays/openjdk/jdk/test/com/sun/media/sound/ModelStandardTransform/TransformLinear.java | 90 ---
overlays/openjdk/jdk/test/com/sun/media/sound/ModelStandardTransform/TransformSwitch.java | 63 --
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/Available.java | 78 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/Close.java | 72 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/GetFilePointer.java | 78 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/GetSize.java | 77 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/HasNextChunk.java | 85 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/Read.java | 79 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/ReadByte.java | 79 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/ReadByteArrayIntInt.java | 81 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/ReadInt.java | 79 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/ReadLong.java | 79 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/ReadShort.java | 79 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/ReadString.java | 79 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/ReadUnsignedByte.java | 79 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/ReadUnsignedInt.java | 79 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/ReadUnsignedShort.java | 79 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/Skip.java | 78 ---
overlays/openjdk/jdk/test/com/sun/media/sound/RiffReaderWriter/WriteOutputStream.java | 81 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SF2SoundbankReader/TestGetSoundbankFile.java | 52 --
overlays/openjdk/jdk/test/com/sun/media/sound/SF2SoundbankReader/TestGetSoundbankInputStream.java | 63 --
overlays/openjdk/jdk/test/com/sun/media/sound/SF2SoundbankReader/TestGetSoundbankInputStream2.java | 119 -----
overlays/openjdk/jdk/test/com/sun/media/sound/SF2SoundbankReader/TestGetSoundbankUrl.java | 54 --
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/AddModelInstrument.java | 86 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/AddModelInstrumentIntInt.java | 91 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/AddModelInstrumentIntIntIntInt.java | 97 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/AddModelInstrumentIntIntIntIntInt.java | 97 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/AddModelPerformer.java | 83 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/AddModelPerformerArray.java | 83 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/AddModelPerformerArrayIntInt.java | 89 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/AddModelPerformerArrayIntIntIntInt.java | 95 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/AddModelPerformerArrayIntIntIntIntInt.java | 95 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/AddModelPerformerIntInt.java | 89 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/AddModelPerformerIntIntIntInt.java | 95 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/AddModelPerformerIntIntIntIntInt.java | 95 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/Clear.java | 73 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/SetName.java | 72 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleInstrument/SetPatch.java | 75 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleSoundbank/AddInstrument.java | 51 --
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleSoundbank/AddResource.java | 52 --
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleSoundbank/GetInstrument.java | 50 --
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleSoundbank/RemoveInstrument.java | 58 --
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleSoundbank/SetDescription.java | 47 --
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleSoundbank/SetName.java | 47 --
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleSoundbank/SetVendor.java | 47 --
overlays/openjdk/jdk/test/com/sun/media/sound/SimpleSoundbank/SetVersion.java | 47 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftAudioBuffer/Array.java | 54 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftAudioBuffer/Clear.java | 56 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftAudioBuffer/Get.java | 68 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftAudioBuffer/NewSoftAudioBuffer.java | 55 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftAudioSynthesizer/DummySourceDataLine.java | 232 ----------
overlays/openjdk/jdk/test/com/sun/media/sound/SoftAudioSynthesizer/GetFormat.java | 61 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftAudioSynthesizer/GetPropertyInfo.java | 53 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftAudioSynthesizer/Open.java | 54 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftAudioSynthesizer/OpenStream.java | 54 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/AllNotesOff.java | 64 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/AllSoundOff.java | 64 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/ChannelPressure.java | 59 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/Controller.java | 62 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/LocalControl.java | 60 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/Mono.java | 59 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/Mute.java | 59 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/NoteOff.java | 64 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/NoteOff2.java | 64 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/NoteOn.java | 64 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/Omni.java | 61 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/PitchBend.java | 59 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/PolyPressure.java | 61 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/ProgramChange.java | 59 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/ResetAllControllers.java | 132 -----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/SoftTestUtils.java | 111 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftChannel/Solo.java | 59 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftCubicResampler/Interpolate.java | 113 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftFilter/TestProcessAudio.java | 99 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftLanczosResampler/Interpolate.java | 113 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftLimiter/ProcessAudio_replace_mix.java | 96 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftLimiter/ProcessAudio_replace_mix_mono.java | 83 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftLimiter/ProcessAudio_replace_mix_mono_overdrive.java | 84 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftLimiter/ProcessAudio_replace_mix_overdrive.java | 95 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftLimiter/ProcessAudio_replace_normal.java | 95 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftLimiter/ProcessAudio_replace_normal_mono.java | 83 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftLimiter/ProcessAudio_replace_overdrive.java | 95 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftLimiter/ProcessAudio_replace_overdrive_mono.java | 83 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftLinearResampler/Interpolate.java | 113 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftLinearResampler2/Interpolate.java | 113 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftLowFrequencyOscillator/TestProcessControlLogic.java | 106 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftPointResampler/Interpolate.java | 113 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftProvider/GetDevice.java | 70 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Close.java | 59 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_ActiveSense.java | 82 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_AllNotesOff.java | 64 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_AllSoundOff.java | 64 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_ChannelPressure.java | 63 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_Controller.java | 66 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_Mono.java | 75 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_NoteOff.java | 65 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_NoteOn.java | 65 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_NoteOn_AllChannels.java | 71 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_NoteOn_Delayed.java | 67 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_NoteOn_Multiple.java | 76 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_Omni.java | 74 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_PitchBend.java | 63 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_PolyPressure.java | 65 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_ProgramChange.java | 63 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/Send_ResetAllControllers.java | 136 -----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftReceiver/SoftTestUtils.java | 111 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSincResampler/Interpolate.java | 113 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/Close.java | 58 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/DummySourceDataLine.java | 232 ----------
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetAvailableInstruments.java | 63 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetChannels.java | 64 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetDefaultSoundbank.java | 58 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetDeviceInfo.java | 56 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetLatency.java | 58 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetLoadedInstruments.java | 65 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetMaxPolyphony.java | 58 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetMaxReceivers.java | 56 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetMaxTransmitters.java | 56 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetMicrosecondPosition.java | 64 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetReceiver.java | 63 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetReceiver2.java | 62 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetReceivers.java | 63 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetTransmitter.java | 63 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetTransmitters.java | 58 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/GetVoiceStatus.java | 61 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/ImplicitOpenClose.java | 105 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/IsOpen.java | 59 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/IsSoundbankSupported.java | 95 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/LoadAllInstruments.java | 73 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/LoadInstrument.java | 73 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/LoadInstruments.java | 73 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/Open.java | 64 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/OpenStream.java | 58 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/RemapInstrument.java | 76 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/TestRender1.java | 214 ---------
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/UnloadAllInstruments.java | 69 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/UnloadInstrument.java | 75 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftSynthesizer/UnloadInstruments.java | 75 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/GetName.java | 54 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/GetTuning.java | 56 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/GetTuningInt.java | 53 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/Load1.java | 101 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/Load2.java | 71 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/Load4.java | 104 ----
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/Load5.java | 87 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/Load6.java | 91 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/Load7.java | 72 ---
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/Load8.java | 65 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/Load9.java | 69 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/NewSoftTuning.java | 56 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/NewSoftTuningByteArray.java | 63 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/NewSoftTuningPatch.java | 54 --
overlays/openjdk/jdk/test/com/sun/media/sound/SoftTuning/NewSoftTuningPatchByteArray.java | 65 --
diffs (truncated from 19416 to 500 lines):
diff -r b86fa01ca5ca -r f882c327935a AUTHORS
--- a/AUTHORS Wed Apr 28 14:20:33 2010 +0100
+++ b/AUTHORS Thu Apr 29 08:59:57 2010 +0200
@@ -31,6 +31,7 @@ Marc Schoenefeld <mschoene at redhat.com>
Marc Schoenefeld <mschoene at redhat.com>
Keith Seitz <keiths at redhat.com>
Joshua Sumali <jsumali at redhat.com>
+Pavel Tisnovsky <ptisnovs at redhat.com>
Christian Thalinger <twisti at complang.tuwien.ac.at>
Dalibor Topic <robilad at kaffe.org>
Arnaud Vandyck <avdyk at debian.org>
diff -r b86fa01ca5ca -r f882c327935a ChangeLog
--- a/ChangeLog Wed Apr 28 14:20:33 2010 +0100
+++ b/ChangeLog Thu Apr 29 08:59:57 2010 +0200
@@ -1,3 +1,9 @@ 2010-04-28 Andrew John Hughes <ahughes
+2010-04-29 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * overlays/openjdk/jdk/test/com: Removed, correct
+ version of these tests are now available in OpenJDK
+ itself.
+
2010-04-28 Andrew John Hughes <ahughes at redhat.com>
* Makefile.am:
diff -r b86fa01ca5ca -r f882c327935a overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatConverter/GetFormat.java
--- a/overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatConverter/GetFormat.java Wed Apr 28 14:20:33 2010 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-/*
- * Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-/* @test
- @summary Test AudioFloatConverter getFormat method */
-
-import javax.sound.sampled.*;
-import com.sun.media.sound.*;
-
-public class GetFormat {
-
- public static void main(String[] args) throws Exception {
- AudioFormat frm = new AudioFormat(8000, 16, 1, true, false);
- AudioFloatConverter conv = AudioFloatConverter.getConverter(frm);
- if(!conv.getFormat().matches(frm))
- throw new RuntimeException("Incorrect audio format returned.");
- }
-
-}
diff -r b86fa01ca5ca -r f882c327935a overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatConverter/ToFloatArray.java
--- a/overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatConverter/ToFloatArray.java Wed Apr 28 14:20:33 2010 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,162 +0,0 @@
-/*
- * Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-/* @test
- @summary Test AudioFloatConverter toFloatArray method */
-
-import javax.sound.sampled.*;
-
-import com.sun.media.sound.*;
-
-public class ToFloatArray {
-
- public static void main(String[] args) throws Exception {
-
- float[] testarray = new float[1024];
- for (int i = 0; i < 1024; i++) {
- double ii = i / 1024.0;
- ii = ii * ii;
- testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
- testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
- testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
- testarray[i] *= 0.3;
- }
-
- // Check conversion using PCM_FLOAT
- for (int big = 0; big < 2; big+=1)
- for (int bits = 32; bits <= 64; bits+=32) {
- AudioFormat frm = new AudioFormat(
- AudioFloatConverter.PCM_FLOAT,
- 44100, bits, 1, bits/8,
- 44100, big==1);
- byte[] buff = new byte[testarray.length * frm.getFrameSize()];
- float[] testarray2 = new float[testarray.length];
- AudioFloatConverter conv = AudioFloatConverter.getConverter(frm);
- conv.toByteArray(testarray, buff);
- conv.toFloatArray(buff, testarray2);
- for (int i = 0; i < testarray2.length; i++) {
- if(Math.abs(testarray[i] - testarray2[i]) > 0.05)
- throw new RuntimeException("Conversion failed for " + frm +" , arrays not equal enough!\n");
- }
-
- }
-
- // Check conversion from float2byte and byte2float.
- for (int big = 0; big < 2; big+=1)
- for (int signed = 0; signed < 2; signed+=1)
- for (int bits = 6; bits <= 40; bits+=2) {
- AudioFormat frm = new AudioFormat(44100, bits, 1, signed==1, big==1);
- byte[] buff = new byte[testarray.length * frm.getFrameSize()];
- float[] testarray2 = new float[testarray.length];
- AudioFloatConverter conv = AudioFloatConverter.getConverter(frm);
- conv.toByteArray(testarray, buff);
- conv.toFloatArray(buff, testarray2);
- for (int i = 0; i < testarray2.length; i++) {
- if(Math.abs(testarray[i] - testarray2[i]) > 0.05)
- throw new RuntimeException("Conversion failed for " + frm +" , arrays not equal enough!\n");
- }
- }
-
- // Check big/little
- for (int big = 0; big < 2; big+=1)
- for (int signed = 0; signed < 2; signed+=1)
- for (int bits = 6; bits <= 40; bits+=2) {
- AudioFormat frm = new AudioFormat(44100, bits, 1, signed==1, big==1);
- byte[] buff = new byte[testarray.length * frm.getFrameSize()];
- AudioFloatConverter conv = AudioFloatConverter.getConverter(frm);
- conv.toByteArray(testarray, buff);
- byte[] buff2 = new byte[testarray.length * frm.getFrameSize()];
- int fs = frm.getFrameSize();
- for (int i = 0; i < buff2.length; i+=fs) {
- for (int j = 0; j < fs; j++) {
- buff2[i+(fs-j-1)] = buff[i+j];
- }
- }
- float[] testarray2 = new float[testarray.length];
- AudioFormat frm2 = new AudioFormat(44100, bits, 1, signed==1, big==0);
- AudioFloatConverter.getConverter(frm2).toFloatArray(buff2, testarray2);
- for (int i = 0; i < testarray2.length; i++) {
- if(Math.abs(testarray[i] - testarray2[i]) > 0.05)
- {
- throw new RuntimeException("Conversion failed for " + frm +" to " + frm2 + " , arrays not equal enough!\n");
- }
- }
- }
-
- // Check signed/unsigned
- for (int big = 0; big < 2; big+=1)
- for (int signed = 0; signed < 2; signed+=1)
- for (int bits = 6; bits <= 40; bits+=2) {
- AudioFormat frm = new AudioFormat(44100, bits, 1, signed==1, big==1);
- byte[] b = new byte[testarray.length * frm.getFrameSize()];
- AudioFloatConverter conv = AudioFloatConverter.getConverter(frm);
- conv.toByteArray(testarray, b);
- int fs = frm.getFrameSize();
- if(big==1)
- {
- for(int i=0; i < b.length; i+= fs )
- b[i] = (b[i] >= 0) ? (byte)(0x80 | b[i]) : (byte)(0x7F & b[i]);
- }
- else
- {
- for(int i=(0+fs-1); i < b.length; i+= fs )
- b[i] = (b[i] >= 0) ? (byte)(0x80 | b[i]) : (byte)(0x7F & b[i]);
- }
- float[] testarray2 = new float[testarray.length];
- AudioFormat frm2 = new AudioFormat(44100, bits, 1, signed==0, big==1);
- AudioFloatConverter.getConverter(frm2).toFloatArray(b, testarray2);
- for (int i = 0; i < testarray2.length; i++) {
- if(Math.abs(testarray[i] - testarray2[i]) > 0.05)
- {
- throw new RuntimeException("Conversion failed for " + frm +" to " + frm2 + " , arrays not equal enough!\n");
- }
- }
- }
-
- // Check if conversion 32->24, 24->16, 16->8 result in same float data
- AudioFormat frm = new AudioFormat(44100, 40, 1, true, true);
- byte[] b = new byte[testarray.length * frm.getFrameSize()];
- AudioFloatConverter.getConverter(frm).toByteArray(testarray, b);
- for (int bits = 6; bits <= 40; bits+=2) {
- AudioFormat frm2 = new AudioFormat(44100, bits, 1, true, true);
- byte[] b2 = new byte[testarray.length * frm2.getFrameSize()];
- int fs1 = frm.getFrameSize();
- int fs2 = frm2.getFrameSize();
- int ii = 0;
- for (int i = 0; i < b.length; i+=fs1)
- for (int j = 0; j < fs2; j++)
- b2[ii++] = b[i+j];
- float[] testarray2 = new float[testarray.length];
- AudioFloatConverter.getConverter(frm2).toFloatArray(b2, testarray2);
- for (int i = 0; i < testarray2.length; i++) {
- if(Math.abs(testarray[i] - testarray2[i]) > 0.05)
- {
- throw new RuntimeException("Conversion failed for " + frm +" to " + frm2 + " , arrays not equal enough!\n");
- }
- }
- }
- }
-
-}
diff -r b86fa01ca5ca -r f882c327935a overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/Available.java
--- a/overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/Available.java Wed Apr 28 14:20:33 2010 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
-/*
- * Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-/* @test
- @summary Test AudioFloatInputStream available method */
-
-import java.io.*;
-
-import javax.sound.sampled.*;
-
-import com.sun.media.sound.*;
-
-public class Available {
-
- static float[] test_float_array;
- static byte[] test_byte_array;
- static AudioFormat format = new AudioFormat(44100, 16, 1, true, false);
-
- static AudioFloatInputStream getStream1()
- {
- return AudioFloatInputStream.getInputStream(format, test_byte_array, 0, test_byte_array.length);
- }
-
- static AudioFloatInputStream getStream2()
- {
- AudioInputStream strm = new AudioInputStream(new ByteArrayInputStream(test_byte_array), format, 1024);
- return AudioFloatInputStream.getInputStream(strm);
- }
-
- static void setUp() throws Exception {
- test_float_array = new float[1024];
- test_byte_array = new byte[1024*format.getFrameSize()];
- for (int i = 0; i < 1024; i++) {
- double ii = i / 1024.0;
- ii = ii * ii;
- test_float_array[i] = (float)Math.sin(10*ii*2*Math.PI);
- test_float_array[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
- test_float_array[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
- test_float_array[i] *= 0.3;
- }
- AudioFloatConverter.getConverter(format).toByteArray(test_float_array, test_byte_array);
- }
-
- public static void main(String[] args) throws Exception {
- setUp();
- for (int i = 0; i < 2; i++) {
- AudioFloatInputStream stream = null;
- if(i == 0) stream = getStream1();
- if(i == 1) stream = getStream2();
- float[] buff = new float[512];
- if(stream.available() != 1024)
- throw new RuntimeException("stream.available return incorrect value.");
- stream.read(buff);
- if(stream.available() != 512)
- throw new RuntimeException("stream.available return incorrect value.");
- }
- }
-
-}
diff -r b86fa01ca5ca -r f882c327935a overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/Close.java
--- a/overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/Close.java Wed Apr 28 14:20:33 2010 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,72 +0,0 @@
-/*
- * Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-/* @test
- @summary Test AudioFloatInputStream close method */
-
-import java.io.*;
-
-import javax.sound.sampled.*;
-
-import com.sun.media.sound.*;
-
-public class Close {
-
- static float[] test_float_array;
- static byte[] test_byte_array;
- static AudioFormat format = new AudioFormat(44100, 16, 1, true, false);
-
- static AudioFloatInputStream getStream1()
- {
- return AudioFloatInputStream.getInputStream(format, test_byte_array, 0, test_byte_array.length);
- }
-
- static AudioFloatInputStream getStream2()
- {
- AudioInputStream strm = new AudioInputStream(new ByteArrayInputStream(test_byte_array), format, 1024);
- return AudioFloatInputStream.getInputStream(strm);
- }
-
- static void setUp() throws Exception {
- test_float_array = new float[1024];
- test_byte_array = new byte[1024*format.getFrameSize()];
- for (int i = 0; i < 1024; i++) {
- double ii = i / 1024.0;
- ii = ii * ii;
- test_float_array[i] = (float)Math.sin(10*ii*2*Math.PI);
- test_float_array[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
- test_float_array[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
- test_float_array[i] *= 0.3;
- }
- AudioFloatConverter.getConverter(format).toByteArray(test_float_array, test_byte_array);
- }
-
- public static void main(String[] args) throws Exception {
- setUp();
- getStream1().close();
- getStream2().close();
- }
-
-}
diff -r b86fa01ca5ca -r f882c327935a overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/GetFormat.java
--- a/overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/GetFormat.java Wed Apr 28 14:20:33 2010 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,74 +0,0 @@
-/*
- * Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-/* @test
- @summary Test AudioFloatInputStream getFormat method */
-
-import java.io.*;
-
-import javax.sound.sampled.*;
-
-import com.sun.media.sound.*;
-
-public class GetFormat {
-
- static float[] test_float_array;
- static byte[] test_byte_array;
- static AudioFormat format = new AudioFormat(44100, 16, 1, true, false);
-
- static AudioFloatInputStream getStream1()
- {
- return AudioFloatInputStream.getInputStream(format, test_byte_array, 0, test_byte_array.length);
- }
-
- static AudioFloatInputStream getStream2()
- {
- AudioInputStream strm = new AudioInputStream(new ByteArrayInputStream(test_byte_array), format, 1024);
- return AudioFloatInputStream.getInputStream(strm);
- }
-
- static void setUp() throws Exception {
- test_float_array = new float[1024];
- test_byte_array = new byte[1024*format.getFrameSize()];
- for (int i = 0; i < 1024; i++) {
- double ii = i / 1024.0;
- ii = ii * ii;
- test_float_array[i] = (float)Math.sin(10*ii*2*Math.PI);
- test_float_array[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
- test_float_array[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
- test_float_array[i] *= 0.3;
- }
- AudioFloatConverter.getConverter(format).toByteArray(test_float_array, test_byte_array);
- }
-
- public static void main(String[] args) throws Exception {
- setUp();
- if(!getStream1().getFormat().matches(format))
- throw new RuntimeException("Incorrect audio format returned.");
- if(!getStream2().getFormat().matches(format))
- throw new RuntimeException("Incorrect audio format returned.");
- }
-
-}
diff -r b86fa01ca5ca -r f882c327935a overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/GetFrameLength.java
--- a/overlays/openjdk/jdk/test/com/sun/media/sound/AudioFloatInputStream/GetFrameLength.java Wed Apr 28 14:20:33 2010 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,74 +0,0 @@
-/*
- * Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
More information about the distro-pkg-dev
mailing list