Prevent audio chuckling when an instance is debug-stopped
This commit is contained in:
parent
52a4c09855
commit
1b38e8c932
@ -1362,6 +1362,10 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency)
|
|||||||
|
|
||||||
- (char *) getDebuggerInput
|
- (char *) getDebuggerInput
|
||||||
{
|
{
|
||||||
|
bool isPlaying = _audioClient.isPlaying;
|
||||||
|
if (isPlaying) {
|
||||||
|
[_audioClient stop];
|
||||||
|
}
|
||||||
[audioLock lock];
|
[audioLock lock];
|
||||||
[audioLock signal];
|
[audioLock signal];
|
||||||
[audioLock unlock];
|
[audioLock unlock];
|
||||||
@ -1380,6 +1384,9 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency)
|
|||||||
[self.debuggerSideView setString:@""];
|
[self.debuggerSideView setString:@""];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if (isPlaying) {
|
||||||
|
[_audioClient start];
|
||||||
|
}
|
||||||
if ((id) input == [NSNull null]) {
|
if ((id) input == [NSNull null]) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user