Copy link to clipboard
Copied
Adobe's Dynamic Audio generation page states that dynamic audio is sampled at 44100hz. I am using a dynamic audio generation library and setting its output sample rate to 44100 hz, and when fed into the Sound
it is at half speed. I assume that Flash is actually sampling the audio at 22050hz instead of the 44100hz in the document. I can decrease the sample rate output by the library, which makes the audio play at the correct speed, but it kills audio quality.
What should I do in this situation?
Welp, turns out my library was outputting stereo sound, and I was writing each sample twice to the stream with the assumption that the output was mono. When I removed the extra writeFloat call, everything was crisp. Cheers!
Copy link to clipboard
Copied
Welp, turns out my library was outputting stereo sound, and I was writing each sample twice to the stream with the assumption that the output was mono. When I removed the extra writeFloat call, everything was crisp. Cheers!