Try sleep 5000 (for 5 seconds sleep) might need time to save the file

Code:
              Call .SaveStreamBuffer(Index, ExData(Index)) ' Save the current wave data to the wave buffer Error occurs here
 
  SLEEP 5000 ' 5 Second delay?
               Call .AddStreamToQueue(Index)           ' Queue the current wave stream