mirror of
https://github.com/trudnai/Steve2.git
synced 2026-01-23 19:16:18 +00:00
casting to unsigned to avoid stereo channel confusion in sound generation
This commit is contained in:
@@ -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 )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user