Fixed SoundGenerator, finally!

Signed-off-by: tfliu <thomasliu02@gmail.com>