summaryrefslogtreecommitdiff
path: root/drivers/coreaudio
diff options
context:
space:
mode:
authorMarcelo Fernandez <marcelofg55@gmail.com>2018-06-20 21:02:02 -0300
committerMarcelo Fernandez <marcelofg55@gmail.com>2018-07-17 10:11:56 -0300
commit9f6536bd0af75ea1dad3a5cbfe1c7987e5557986 (patch)
tree4cbf2fa35bad7fc7d9bb3f53a3b0c0310a1f0c6a /drivers/coreaudio
parentb64bf118f11aaf083b4dcad790e8acdaa809c158 (diff)
Add Audio Server profiling time to the profiler
Diffstat (limited to 'drivers/coreaudio')
-rw-r--r--drivers/coreaudio/audio_driver_coreaudio.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/coreaudio/audio_driver_coreaudio.cpp b/drivers/coreaudio/audio_driver_coreaudio.cpp
index ef7858b4ca..63af4506f3 100644
--- a/drivers/coreaudio/audio_driver_coreaudio.cpp
+++ b/drivers/coreaudio/audio_driver_coreaudio.cpp
@@ -163,6 +163,8 @@ OSStatus AudioDriverCoreAudio::output_callback(void *inRefCon,
return 0;
};
+ ad->start_counting_ticks();
+
for (unsigned int i = 0; i < ioData->mNumberBuffers; i++) {
AudioBuffer *abuf = &ioData->mBuffers[i];
@@ -184,6 +186,7 @@ OSStatus AudioDriverCoreAudio::output_callback(void *inRefCon,
};
};
+ ad->stop_counting_ticks();
ad->unlock();
return 0;