mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix some minor type conversion warnings.
This commit is contained in:
1 parent
19f6beb35b
commit
ffbe28fc61
4 files changed
+4
-4
No files matched your search
+1
-1
@@ -36,7 +36,7 @@ private:
|
||||
|
||||
bool cheatsOn;
|
||||
std::vector<std::string> codes;
|
||||
int currentCode;
|
||||
size_t currentCode;
|
||||
bool exit2;
|
||||
std::vector<std::string> parts;
|
||||
};
|
||||
@@ -122,7 +122,7 @@ u32 __AudioEnqueue(AudioChannel &chan, int chanNum, bool blocking)
|
||||
if (chan.sampleQueue.size() > chan.sampleCount * 2 * chanQueueMaxSizeFactor || chan.sampleAddress == 0) {
|
||||
if (blocking) {
|
||||
// TODO: Regular multichannel audio seems to block for 64 samples less? Or enqueue the first 64 sync?
|
||||
int blockSamples = chan.sampleQueue.size() / 2 / chanQueueMinSizeFactor;
|
||||
int blockSamples = (int)chan.sampleQueue.size() / 2 / chanQueueMinSizeFactor;
|
||||
|
||||
AudioChannelWaitInfo waitInfo = {__KernelGetCurThread(), blockSamples};
|
||||
chan.waitingThreads.push_back(waitInfo);
|
||||
|
||||
@@ -554,7 +554,7 @@ u32 sceAtracDecodeData(int atracID, u32 outAddr, u32 numSamplesAddr, u32 finishF
|
||||
int gotsize = atrac->sampleQueue.pop_front(buf, ATRAC_MAX_SAMPLES * sizeof(s16) * atrac->atracChannels);
|
||||
numSamples = gotsize / sizeof(s16) / atrac->atracChannels;
|
||||
s16* in = (s16*)buf;
|
||||
for (int i = 0; i < numSamples; i++) {
|
||||
for (u32 i = 0; i < numSamples; i++) {
|
||||
s16 sampleL = *in++;
|
||||
s16 sampleR = sampleL;
|
||||
if (atrac->atracChannels == 2)
|
||||
|
||||
@@ -202,7 +202,7 @@ namespace MainWindow
|
||||
void setFpsLimit(int fps) {
|
||||
g_Config.iFpsLimit = fps;
|
||||
}
|
||||
void enableCheats(int cheats){
|
||||
void enableCheats(bool cheats){
|
||||
g_Config.bEnableCheats = cheats;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user