 |
 |
 |
| Class |
|
AudioChannel |
 |
|
|
| Name |
|
saveSound() |
 |
|
|
| Examples |
|
// Example by Krister Olsson
import krister.Ess.*;
// start up Ess
Ess.start(this);
// create a new AudioChannel
AudioChannel myChannel=new AudioChannel();
// load a sound into it
myChannel.loadSound("cell.aif");
// save the sound to a WAVE file
myChannel.saveSound("hello.wav");
// we are done, clean up Ess
Ess.stop();
|
|
|
| Description |
|
Saves an AudioChannel's sample data (or portion thereof) to either an AIFF or WAVE file. The format for the file is chosen based on the suffix of the filename. If an unrecognized suffix or no suffix is present, AIFF is chosen |
 |
|
|
| Syntax |
|
channel.saveSound(filename)
channel.saveSound(filename, offset, frames)
|
 |
|
|
| Parameters |
|
| channel |
|
any instance of AudioChannel
|
| filename |
|
String: the name of the file
|
| offset | ,
|
int: the sample frame from which to start saving. The default is the first frame
|
| frames |
|
int: the number of frames to save. The default is the entire buffer
|
|
 |
|
|
| Returns |
|
nothing |
 |
|
|
| Usage |
|
Web (signed applet) & Application |
 |
|
|