-------------------------------------------------------------------------
File: save-stimulus.txt
Title: Design notes on saving the stimulus to the data file
Author: cmalek@placodermi.org (Chris Malek)
Scope: xdphys developers
Audience:  xdphys developers
Expiration Date: July 15, 2002
RCSid: $Id: save-stimulus.txt,v 1.1 2002/07/15 04:29:56 cmalek Exp $
-------------------------------------------------------------------------

Abstract:

	This file contains my design notes taken during implementation of 
    the saving the stimulus to the datafile mod to xdphys.

Executive summary:

	o Need to be sure to deal with mono/binoaural stimuli.
	o Need to make sure we're not using noise caching
	o After playback is complete, is the stimulus in the iserver buffers
      unmodified?  If so, can just extract the stimulus from there.
    o Probably should not be part of writeAnalog -- make it a separate
      function.
	o writeAnalog is too generic now, change to write_ad_buffers or
	  something.  write_stimulus or record_stimulus.
    o Both of these functions should call writeAnalog to do the writing.o
	o When writing analog waveforms, there is the concept of ana_every.
      probably need a save_stim_every, too.  And the stim should be saved
      on the same trials that the response is saved. 

Details:

