how would you say it in words? [closed]
The following code, how would you say in words?
AudioInputStream cutStream = new AudioInputStream(
new FileInputStream(inFile), audioFormat, sourceDataLine.getLongFramePosition());
Create a new audio input stream using the specified file, format and position.
Cutstream is a new AudioInputStream. I passed into the constructor inFile, audioFormat, and the longFramePosition from sourceDataLine.
Instantiate a new instance of the AudioStream class, with a new instance of a FileInputStream reading from infile, using the local object audioformat, and the object returned by the getLongFramePosition method of the local object sourceDataLine and store the instance in the local variable cutStream.
"Create a new instance of AudioInputStream, giving it a FileInputStream to the input file, the audioformat and sourceDataLine dot getLongFramePosition."
"Create a new AudioInputStream from some parameters configured elsewhere."
I think what you may really be looking for is the Javadoc for AudioInputStream's constructor.
精彩评论