代码搜索结果

找到约 10,000 项符合 Audio 的代码

e721. setting the volume of playing midi audio.txt

// To create a Sequencer object, see e716 Loading and Playing Midi Audio if (sequencer instanceof Synthesizer) { Synthesizer synthesizer = (Synthesizer)sequencer; MidiCha

e728. determining the duration of a sampled audio file.txt

// To create a Clip object, see e723 Loading and Playing Sampled Audio double durationInSecs = clip.getBufferSize() / (clip.getFormat().getFrameSize() * clip.getFormat().getFrame

e725. continuously playing a sampled audio file.txt

Only DataLine objects that are of type Clip can be repeated. To create a clip, see e723 Loading and Playing Sampled Audio. // Play once clip.start(); // Play and loop forever

e719. determining the duration of a midi audio file.txt

To create a Sequencer object, see e716 Loading and Playing Midi Audio. // To create a Sequencer object, see e716 Loading and Playing Midi Audio double durationInSecs = sequencer.getMi

e727. determining the encoding of a sampled audio file.txt

try { // From file AudioInputStream stream = AudioSystem.getAudioInputStream(new File("audiofile")); // From URL stream = AudioSystem.getAudioInputStream(new