It sounds like you are outputting the same data that you are trying to input. One thing to check is the amount of data you are sending to the AO Write and the size of the buffer you are setting at AO Config. You want the data to be at least the size of the buffer initially. The reason is that the first time you write to the channels, you will have gaps if you don't fill up the buffer. Thereafter, if you are doing continuous generation, the output channels will be updated with half buffers. You may also find some useful information in the KnowledgeBase entry 297DGK5T: Why Does My Buffered Analog Output Transfer Pause at Times? and the KnowledgeBase entry 0CMAA28Q: NI-DAQ Regenerates the First Buffer with Circular Buffered Analog Output. These are available at t
he http://www.ni.com/support pages when you search the KnowledgeBase for "analog output and buffer".
If you are sending a binary file of data to the output channels for the sound, check that there is no header information at the beginning, which would seem like a delay of silence but may actually be sound. Or double-check that you have created the sound file as expected.
Usually WAV files are used, and you can find some useful discussions concerning them on this forum. Do a search on "wav", and among the findings, you will find Markwysong's description ("DAQ/SCXI/WAV file help needed.." question) of creating a WAV file from the analog input of a DAQ board.
These are some ideas. I hope they help!
Regards,
Geneva L.
Applications Engineer
National Instruments
http://www.ni.com/support