mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fixes state.
This commit is contained in:
1 parent
9a85ab2c43
commit
be0449d16d
1 file changed
+3
-2
@@ -120,6 +120,7 @@ void __UsbMicDoState(PointerWrap &p) {
|
||||
if (!s) {
|
||||
return;
|
||||
}
|
||||
bool isMicStartedNow = Microphone::isMicStarted();
|
||||
Do(p, numNeedSamples);
|
||||
Do(p, waitingThreads);
|
||||
Do(p, isNeedInput);
|
||||
@@ -143,10 +144,10 @@ void __UsbMicDoState(PointerWrap &p) {
|
||||
}
|
||||
|
||||
if (micState == 0) {
|
||||
if (Microphone::isMicStarted())
|
||||
if (isMicStartedNow)
|
||||
Microphone::stopMic();
|
||||
} else if (micState == 1) {
|
||||
if (Microphone::isMicStarted()) {
|
||||
if (isMicStartedNow) {
|
||||
// Ok, started.
|
||||
} else {
|
||||
Microphone::startMic(new std::vector<u32>({ curSampleRate, curChannels }));
|
||||
|
||||
Reference in new issue
Block a user