After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 745078 - osxaudio: AudioUnitGetProperty (..., kAudioUnitProperty_Latency, ...) takes time
osxaudio: AudioUnitGetProperty (..., kAudioUnitProperty_Latency, ...) takes time
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.4.5
Other Mac OS
: Normal normal
: git master
Assigned To: Ilya Konstantinov
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-02-24 11:08 UTC by Ilya Konstantinov
Modified: 2018-11-03 14:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (6.17 KB, patch)
2015-02-24 11:14 UTC, Ilya Konstantinov
none Details | Review

Description Ilya Konstantinov 2015-02-24 11:08:27 UTC
AudioUnitGetProperty (..., kAudioUnitProperty_Latency, ...) is showing up in the profiler as a time-waster. It doesn't actually change all that often, and can be detected with a property listener.
Comment 1 Ilya Konstantinov 2015-02-24 11:14:36 UTC
Created attachment 297752 [details] [review]
Patch

Trouble is, I don't see the latency *ever* changing from 0 on iOS. Maybe I should see how it goes on OS X.

I think the patch is straightforward, but ... famous last words.
Comment 2 Arun Raghavan 2015-02-24 16:48:13 UTC
I do see a return value of 0 on AUHAL too.

The latency property might only be meaningful for non-hardware AudioUnits, which do processing, and have an inherent latency.

I'm looking for ways to query the underlying buffer size/fill level, since that's what we actually need.
Comment 3 Arun Raghavan 2015-02-24 18:15:22 UTC
For iOS, it might be sensible to use inputLatency and outputLatency from the AVAudioSession.

https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVAudioSession_ClassReference/index.html#//apple_ref/occ/instp/AVAudioSession/

For the HAL, I'm not sure what the right thing to do is. I do see a IO buffer size, as well as input and ouput latencies specified in the information page in HAL Lab. If we can't query actual fill levels but can use these, it might suffice for our purposes.
Comment 4 Matthew Waters (ystreet00) 2018-05-07 10:43:29 UTC
Are you still planning to work on this Ilya?
Comment 5 GStreamer system administrator 2018-11-03 14:58:04 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/162.