Core Audio: Shut off device after fade out
And resume playback before fade in. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
5e48382774
commit
b08de34bf0
1 changed files with 7 additions and 0 deletions
|
@ -169,6 +169,13 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons
|
||||||
rendered = NO;
|
rendered = NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(faded && !paused) {
|
||||||
|
resetting = YES;
|
||||||
|
[self pause];
|
||||||
|
started = NO;
|
||||||
|
resetting = NO;
|
||||||
|
}
|
||||||
|
|
||||||
if(!started && !paused) {
|
if(!started && !paused) {
|
||||||
// Prevent this call from hanging when used in this thread, when buffer may be empty
|
// Prevent this call from hanging when used in this thread, when buffer may be empty
|
||||||
// and waiting for this very thread to fill it
|
// and waiting for this very thread to fill it
|
||||||
|
|
Loading…
Reference in a new issue