casting to unsigned to avoid stereo channel confusion in sound generation

This commit is contained in:
tudnai 2021-05-25 10:15:17 -07:00
parent 1664fb4604
commit 69aaaedd86

View File

@ -58,7 +58,7 @@
// calculates number of cycles in one frame
#define MHZ(mhz) ( (mhz) * M )
#define MHZ(mhz) ( (unsigned)( (mhz) * M ) )
#define FRAME(mhz) ( MHZ(mhz) / fps )
#define FRAME_INIT(mhz) ( MHZ(mhz) / DEFAULT_FPS )