mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Another buildfix attempt
This commit is contained in:
1 parent
7c5d36eca7
commit
1cd34f9d2b
3 files changed
+8
-1
No files matched your search
@@ -82,6 +82,11 @@ static bool m_logAudio;
|
||||
static int chanQueueMaxSizeFactor;
|
||||
static int chanQueueMinSizeFactor;
|
||||
|
||||
// Accessor for libretro
|
||||
int __AudioGetHostAttemptBlockSize() {
|
||||
return hostAttemptBlockSize;
|
||||
}
|
||||
|
||||
static void hleAudioUpdate(u64 userdata, int cyclesLate) {
|
||||
// Schedule the next cycle first. __AudioUpdate() may consume cycles.
|
||||
CoreTiming::ScheduleEvent(audioIntervalCycles - cyclesLate, eventAudioUpdate, 0);
|
||||
|
||||
@@ -50,6 +50,8 @@ int __AudioMix(short *outstereo, int numSamples, int sampleRate);
|
||||
void __AudioGetDebugStats(char *buf, size_t bufSize);
|
||||
void __PushExternalAudio(const s32 *audio, int numSamples); // Should not be used in-game, only at the menu!
|
||||
|
||||
int __AudioGetHostAttemptBlockSize();
|
||||
|
||||
// Audio Dumping stuff
|
||||
void __StartLogAudio(const Path &filename);
|
||||
void __StopLogAudio();
|
||||
|
||||
@@ -379,7 +379,7 @@ class LibretroHost : public Host
|
||||
void InitSound() override {}
|
||||
void UpdateSound() override
|
||||
{
|
||||
extern const int hostAttemptBlockSize;
|
||||
int hostAttemptBlockSize = __AudioGetHostAttemptBlockSize();
|
||||
const int blockSizeMax = 512;
|
||||
static int16_t audio[blockSizeMax * 2];
|
||||
assert(hostAttemptBlockSize <= blockSizeMax);
|
||||
|
||||
Reference in new issue
Block a user