Load Stimulation Files to YAMI or RIBs
Namespace: ExpSuiteAssembly: FrameWork (in FrameWork.exe) Version: 1.0.0.0
Syntax
Visual Basic |
---|
Public Shared Function LoadStimulationFile ( _ szLeft As String, _ szRight As String, _ lChLeft As Integer, _ lChRight As Integer _ ) As String |
Parameters
- szLeft
- Type: System..::..String
File name of the left stimulus. The File name can contain an absolute path beginning with "\\" or a drive. The work directory will be used in other cases. If no extension is given, it will be appended depending on stimulation mode.
- szRight
- Type: System..::..String
File name of an optional right stimulus. The File name can contain an absolute path beginning with "\\" or a drive. The work directory will be used in other cases. If no extension is given, it will be appended depending on stimulation mode.
- lChLeft
- Type: System..::..Int32
Audio channel through which the stimulus szLeft will be played. If ommited or set to zero, the left channel for headphones presentation (Options/Audio) will be used.
- lChRight
- Type: System..::..Int32
Audio channel through which the stimulus szRight will be played. If ommited or set to zero, the right channel for headphones presentation (Options/Audio) will be used.
Return Value
Error message or empty if no error ocured.Remarks
Using lChLeft and/or lChRight the left/right stimulus will assigned to the given DAC channel.
This assignment will be not removed, causing playing via multiple channels on repeated calls using different lChLeft or lChRight.
To avoid this problem, reset existing assignments from all channels available using for example code like this:
CopyVB.NET
Dim lX as Long For lX = 0 To glPlayerChannels - 1 Output.Send "/DAC/SetStream/" + TStr(lX), "set", "silence" Next