Skip to content

Commit

Permalink
working on Issue #3 on PCM phase step.
Browse files Browse the repository at this point in the history
  • Loading branch information
gzaffin committed Jan 6, 2024
1 parent a45c3f2 commit a493979
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 93 deletions.
6 changes: 3 additions & 3 deletions eupplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
#include <strstream>

#ifdef _MSC_VER
// following SDL_MAIN_HANDLED macro is managed with CMake
//#define SDL_MAIN_HANDLED
// following SDL_MAIN_HANDLED macro is managed with CMake
//#define SDL_MAIN_HANDLED
#include <SDL.h>
#else
#include <SDL.h>
Expand Down Expand Up @@ -420,7 +420,7 @@ uint8_t *EUPPlayer_readFile(EUPPlayer *player,
#ifdef _MSC_VER
std::strcat(nameBuf, "\\.eupplay\\");
#else
std::strcat(nameBuf,"/.eupplay/");
std::strcat(nameBuf, "/.eupplay/");
#endif
}
else
Expand Down
2 changes: 1 addition & 1 deletion eupplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ void EUPPlayer::tempo(int t)
int t0 = 96 * t;
struct timeval tv{};
tv.tv_sec = 60 / t0;
tv.tv_usec = ((60*1000*1000) / t0) - tv.tv_sec*1000*1000;
tv.tv_usec = ((60L*1000L*1000L) / t0) - tv.tv_sec*1000L*1000L;
if (_outputDev != nullptr) {
_outputDev->timeStep(tv);
}
Expand Down
Loading

0 comments on commit a493979

Please sign in to comment.