|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnidaqdev.NIFilePlayback
public class NIFilePlayback
| Field Summary | |
|---|---|
private java.util.ArrayList<NIDeviceInfo> |
deviceInfo
|
private FilePlayback |
filePlayback
|
private Nidaq |
niDaq
|
private int[] |
niDeviceLUT
converts usable NI devices (ones with playback channels) to numbers used by the NI interface to identify the different cards on the system . |
private java.lang.String[] |
niDeviceNames
|
private boolean |
prepared
|
| Constructor Summary | |
|---|---|
NIFilePlayback(FilePlayback filePlayback)
|
|
| Method Summary | |
|---|---|
java.lang.String[] |
getDeviceNames()
|
java.lang.String |
getName()
|
private void |
getNIDevices()
|
int |
getNumPlaybackChannels(int devNum)
Get's the number of playback channels for a given device. |
boolean |
playData(RawDataUnit[] data)
Play some data. |
boolean |
preparePlayback(PlaybackParameters playbackParameters)
Prepare playback |
boolean |
stopPlayback()
Stop playback, clean up buffers, etc. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private volatile boolean prepared
private FilePlayback filePlayback
private int[] niDeviceLUT
private java.lang.String[] niDeviceNames
private Nidaq niDaq
private java.util.ArrayList<NIDeviceInfo> deviceInfo
| Constructor Detail |
|---|
public NIFilePlayback(FilePlayback filePlayback)
| Method Detail |
|---|
private void getNIDevices()
public java.lang.String[] getDeviceNames()
getDeviceNames in interface FilePlaybackDevicepublic java.lang.String getName()
getName in interface FilePlaybackDevicepublic int getNumPlaybackChannels(int devNum)
FilePlaybackDevice
getNumPlaybackChannels in interface FilePlaybackDevicedevNum - device number
public boolean playData(RawDataUnit[] data)
FilePlaybackDevice
playData in interface FilePlaybackDevicedata - array of raw audio data units.
public boolean preparePlayback(PlaybackParameters playbackParameters)
FilePlaybackDevice
preparePlayback in interface FilePlaybackDeviceplaybackParameters - parameters
public boolean stopPlayback()
FilePlaybackDevice
stopPlayback in interface FilePlaybackDevice
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||