sound: Correct data output in sound_create_square_wave()