nik312123 / Undyne

0 stars 0 forks source link

Nikunj: Windows Audio Problem #103

Closed nik312123 closed 5 years ago

nik312123 commented 5 years ago

In Windows, playing a sound while the same sound is running results in audio distortion, especially if there are many of the same sound playing at once.

nik312123 commented 5 years ago

Fixed by setting the audio buffer array from 4 to 32 bytes, which introduced a looping issue (not seamless). This was fixed by moving the do-while loop from the PlayingSound constructor to the stream method.