I've got a c# handler that serves up audio files I've generated using text-to-speech. When the files are written to disk they sound fine, but when I try and play them in a browser (via the handler) using a quicktime plugin it cuts them short at about 2 seconds.
Inside the handler I'm using the following code...
context.Response.ClearContent();
context.Response.ClearHeaders();
context.Response.ContentType = "audio/x-wav";
context.Response.WriteFile(fileName);
context.Response.Flush();
Anyone know what I'm doing wrong?