mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-24 09:52:20 -05:00
Merge branch 'master' of https://gitlab.com/drummyfish/anarch
This commit is contained in:
commit
aca237d825
2
game.h
2
game.h
@ -1620,7 +1620,7 @@ void SFG_setAndInitLevel(uint8_t levelNumber)
|
||||
}
|
||||
}
|
||||
|
||||
SFG_currentLevel.timeStart = SFG_getTimeMs();
|
||||
SFG_currentLevel.timeStart = SFG_game.frameTime;
|
||||
SFG_currentLevel.frameStart = SFG_game.frame;
|
||||
|
||||
SFG_game.spriteAnimationFrame = 0;
|
||||
|
@ -306,10 +306,9 @@ void emscripten_set_main_loop(em_callback_func func, int fps, int simulate_infin
|
||||
uint16_t audioBuff[SFG_SFX_SAMPLE_COUNT];
|
||||
uint16_t audioPos = 0;
|
||||
|
||||
static inline uint16_t mixSamples(uint16_t sample1, uint16_t sample2)
|
||||
static inline int16_t mixSamples(int16_t sample1, int16_t sample2)
|
||||
{
|
||||
//return (sample1 + sample2) >> 1; //(sample1 >> 1) + (sample2 >> 1);
|
||||
return sample1 + sample2; //(sample1 >> 1) + (sample2 >> 1);
|
||||
return (sample1 + sample2) / 2;
|
||||
}
|
||||
|
||||
uint8_t musicOn = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user