Remove some unused variables.

This commit is contained in:
Unknown W. Brackets 2015-12-23 15:22:28 -08:00
parent 103b959d50
commit d6cd3bd5ad
2 changed files with 2 additions and 11 deletions

View file

@ -52,7 +52,6 @@ const int PSMF_PLAYER_WARMUP_FRAMES = 3;
static const int VIDEO_FRAME_DURATION_TS = 3003;
int psmfMaxAheadTimestamp = 40000;
int audioSamples = 2048;
int audioSamplesBytes = audioSamples * 4;
int videoPixelMode = GE_CMODE_32BIT_ABGR8888;
@ -140,10 +139,6 @@ struct PsmfEntry {
int EPPicOffset;
};
static int getMaxAheadTimestamp(int packets) {
return std::max(40000, packets * 700);
}
// Some of our platforms don't play too nice with direct unaligned access.
static u32 ReadUnalignedU32BE(const u8 *p) {
return (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | (p[3] << 0);
@ -258,7 +253,6 @@ public:
int displayBuffer;
int displayBufferSize;
int playbackThreadPriority;
int psmfMaxAheadTimestamp;
int totalVideoStreams;
int totalAudioStreams;
int playerVersion;
@ -456,7 +450,8 @@ void PsmfPlayer::DoState(PointerWrap &p) {
p.Do(displayBuffer);
p.Do(displayBufferSize);
p.Do(playbackThreadPriority);
p.Do(psmfMaxAheadTimestamp);
int oldMaxAheadTimestamp = 0;
p.Do(oldMaxAheadTimestamp);
if (s >= 4) {
p.Do(totalDurationTimestamp);
} else {
@ -1033,7 +1028,6 @@ static int scePsmfPlayerCreate(u32 psmfPlayer, u32 dataPtr)
videoPixelMode = GE_CMODE_32BIT_ABGR8888;
videoLoopStatus = PSMF_PLAYER_CONFIG_NO_LOOP;
psmfplayer->psmfMaxAheadTimestamp = getMaxAheadTimestamp(581);
psmfplayer->status = PSMF_PLAYER_STATUS_INIT;
return hleDelayResult(0, "player create", 20000);
}

View file

@ -15,9 +15,6 @@
DrawBuffer ui_draw2d;
DrawBuffer ui_draw2d_front;
// Theme.
static const Atlas *themeAtlas;
void UIBegin(Thin3DShaderSet *shaderSet) {
ui_draw2d.Begin(shaderSet);
ui_draw2d_front.Begin(shaderSet);