public class RandomNoiseProducer extends Object implements NoiseProducer
Sample from one of the given noiseFiles.
By default this noise comes from one of three files, all located in
/sounds/noises/: radio_tuning.wav,
restaurant.wav, and swimming.wav. This can be
overridden by passing the location of your own sound files to the
constructor, e.g.:
String myFiles = { "/mysounds/noise1.wav", "/mysounds/noise2.wav" };
NoiseProducer myNp = new RandomNoiseProducer(myFiles);
| 构造器和说明 |
|---|
RandomNoiseProducer() |
RandomNoiseProducer(String[] noiseFiles) |
public RandomNoiseProducer()
public RandomNoiseProducer(String[] noiseFiles)
Copyright © 2015. All rights reserved.