Skip to main content
yuxster
Participant
February 27, 2015
Answered

Dynamic Sound sample rate problems

  • February 27, 2015
  • 1 reply
  • 221 views

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?

This topic has been closed for replies.
Correct answer yuxster

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!

1 reply

yuxster
yuxsterAuthorCorrect answer
Participant
March 1, 2015

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!