Methods Summary |
---|
public void | connect()
// System.err.println("JavaSoundDataSource.connect()");
if (sourceStream.isConnected())
return;
if (getLocator() != null)
sourceStream.setFormat(DirectSoundStream.parseLocator(getLocator()));
sourceStream.connect();
|
public void | disconnect()
// System.err.println("JavaSoundDataSource.disconnect()");
sourceStream.disconnect();
|
public javax.media.CaptureDeviceInfo | getCaptureDeviceInfo()
CaptureDeviceInfo cdi = CaptureDeviceManager.getDevice(NAME);
return cdi;
|
public java.lang.String | getContentType()
// System.err.println("JavaSoundDataSource.getContentType() ");
return contentType;
|
public java.lang.Object | getControl(java.lang.String name)
// System.err.println("JavaSoundDataSource.getControl(): " + name);
return sourceStream.getControl(name);
|
public java.lang.Object[] | getControls()
// System.err.println("JavaSoundDataSource.getControls()");
Object o[] = sourceStream.getControls();
return o;
|
public javax.media.Time | getDuration()
// System.err.println("JavaSoundDataSource.getDuration()");
return duration;
|
public javax.media.control.FormatControl[] | getFormatControls()
FormatControl fc[] = new FormatControl[1];
fc[0] = (FormatControl)sourceStream.getControl("javax.media.control.FormatControl");
return fc;
|
public javax.media.protocol.RateConfiguration[] | getRateConfigurations()Methods for the RateConfigurable interface.
RateConfiguration config [] = { new OneRateConfig() };
return config;
|
boolean | getStarted()
// System.err.println("JavaSoundDataSource.getStarted()");
return started;
|
public javax.media.protocol.PushBufferStream[] | getStreams()
// System.err.println("JavaSoundDataSource.getStreams()");
if (streams == null)
System.err.println(
"DataSource needs to be connected before calling getStreams");
return streams;
|
public javax.media.protocol.RateConfiguration | setRateConfiguration(javax.media.protocol.RateConfiguration config)
return config;
|
public void | start()
// System.err.println("JavaSoundDataSource.start()");
sourceStream.start();
|
public void | stop()
// System.err.println("JavaSoundDataSource.stop()");
sourceStream.stop();
|