mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Remove duplicate ERR_PRINT macro.
This commit is contained in:
@@ -241,7 +241,7 @@ OSStatus AudioDriverCoreAudio::input_callback(void *inRefCon,
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ERR_PRINTS("AudioUnitRender failed, code: " + itos(result));
|
||||
ERR_PRINT("AudioUnitRender failed, code: " + itos(result));
|
||||
}
|
||||
|
||||
ad->unlock();
|
||||
@@ -253,7 +253,7 @@ void AudioDriverCoreAudio::start() {
|
||||
if (!active) {
|
||||
OSStatus result = AudioOutputUnitStart(audio_unit);
|
||||
if (result != noErr) {
|
||||
ERR_PRINTS("AudioOutputUnitStart failed, code: " + itos(result));
|
||||
ERR_PRINT("AudioOutputUnitStart failed, code: " + itos(result));
|
||||
} else {
|
||||
active = true;
|
||||
}
|
||||
@@ -264,7 +264,7 @@ void AudioDriverCoreAudio::stop() {
|
||||
if (active) {
|
||||
OSStatus result = AudioOutputUnitStop(audio_unit);
|
||||
if (result != noErr) {
|
||||
ERR_PRINTS("AudioOutputUnitStop failed, code: " + itos(result));
|
||||
ERR_PRINT("AudioOutputUnitStop failed, code: " + itos(result));
|
||||
} else {
|
||||
active = false;
|
||||
}
|
||||
@@ -491,7 +491,7 @@ Error AudioDriverCoreAudio::capture_start() {
|
||||
|
||||
OSStatus result = AudioOutputUnitStart(input_unit);
|
||||
if (result != noErr) {
|
||||
ERR_PRINTS("AudioOutputUnitStart failed, code: " + itos(result));
|
||||
ERR_PRINT("AudioOutputUnitStart failed, code: " + itos(result));
|
||||
}
|
||||
|
||||
return OK;
|
||||
@@ -502,7 +502,7 @@ Error AudioDriverCoreAudio::capture_stop() {
|
||||
if (input_unit) {
|
||||
OSStatus result = AudioOutputUnitStop(input_unit);
|
||||
if (result != noErr) {
|
||||
ERR_PRINTS("AudioOutputUnitStop failed, code: " + itos(result));
|
||||
ERR_PRINT("AudioOutputUnitStop failed, code: " + itos(result));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user