Apple recommends using playInputClick in custom keyboards to simulate a click sound. It's easier to implement AudioServicesPlaySystemSound(1104); so my question then becomes, does playInputClick provide better performance or is it the same thing?
iOS: Is there a performance difference between using playInputClick vs the (1104) sound file with audio toolbox?
529 Views Asked by KingPolygon At
1
There are 1 best solutions below
Related Questions in OBJECTIVE-C
- How to control the volume of an iPhone programmatically in objective-c
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- How to set value the descriptor of iOS BLE in Objective-C?
- Unexpected #selector() Behavior in Swift-Objective-C Interop?
- In what context can we use an unqualified #selector() expression in Swift?
- AVPictureInPictureController crashes during initialization
- How to use pow() in Objective-C?
- How to change the image on the MGSwipeButton in MGSwipeTableCell
- Using sort descriptors in Outline View
- Why is my Swift function not printing from inside the dataTask closure?
- Using UICollectionViewCell with IBOutlet
- Undefined symbol: _OBJC_CLASS_$_ only on simulator
- Why can't I receive a notification sent from Camera Extension(Swift) to an observer application (obj-c++)
- Behavior of __block modifier in objc
- Inserting subview into view where I've added subviews and sublayers
Related Questions in IOS8
- Are iOS MDM profile config file meant to be public?
- Compatibility of named colors below iOS 11
- iOS12, kReachabilityChangedNotification is not worked
- How to add buttons to wkWebView?
- iOS 8 - show incoming call when app is not active (without CallKit)
- pangestures interactive like mail app in iOS
- Animating swipe actions in tableview
- ASIHTTPREQUEST not working as expected in iOS 8.3
- Xcode 9 - Safe Area Layout Guides Error Comes Back
- Using spotlight in iOS app with deployment target iOS 8
- Issue with UIImage on older iOS versions
- How do you launch an iOS app in the current device orientation?
- uiimageview.image appears to be warped on iOS 8 simulator
- Codename One - Can't read from socket on real device
- iPhone X backward compatibility to cater devices below iOS 8 versions and future compatibility
Related Questions in AVFOUNDATION
- Merging sound with video causes the loss of video transparency
- How do I generate a Codabar barcode in Swift?
- Can we produce haptics and record from microphone the haptic sound at the same time on iOS?
- Adding GPS location EXIF tag to video recordings with AVAssetWriter
- a fix for (( AddInstanceForFactory: No factory registered for id <CFUUID 0x6000002b04c0> F8BB1C28-BAE8-11D6-9C31-00039315CD46 ))
- Cannot connect AVAudioUnitSampler to AVAudioEngine while the engine is running
- Is it possible to dismiss Picture in Picture from an AVPlayerViewController
- Very Rare Intermittent Crash in AVFoundation.AVAudioPlayerNode.play() (AVAudioPlayerNode.mm:660)
- What is the definitive way to detect when AVSpeechSynthesizer.write is finished?
- ipadOS 17.4: AVCaptureMetadataOutput delegate not called (qrscanner)
- Latency in AVCaptureDepthDataOutput data
- AVAssetExportPresetHEVCHighestQualityWithAlpha decreases quality when exporting video
- Change FPS in AVFoundation's CaptureSession
- Exporting video in Swift in bigger canvas and fill the background with transparancy
- Unable to write audio queue to file to m4a
Related Questions in AUDIOTOOLBOX
- AudioToolBox Recorder gets affect by AVFoundation AudioPlayer
- Cannot set input volume of MultiChanelMixer AudioUnit bus
- AudioConverterFillComplexBuffer returns 1852797029 (kAudioCodecIllegalOperationError)
- iOS: Is there a performance difference between using playInputClick vs the (1104) sound file with audio toolbox?
- memory leak in AudioToolbox library AVAudioPlayer
- Specify software-based codec for AVAssetReaderAudioMixOutput?
- i am studying "Audio File Stream Services Reference" in iOS
- Airplay options are hidden after initialise AudioUnit on iOS
- Audio Queue cannot start again after AudioQueueStop
- is it possible to have level metering in AVQueuePlayer on iOS?
- Objective C MIDI Issue
- How to sync accurately enough two music sequences (Audiokit.AKAppleSequencer)?
- Finding Codec in audio file using Apple APIs
- AudioServicesAddSystemSoundCompletion under ARC using __bridge
- Monotouch can't find AudioFileOpenURL
Related Questions in UIINPUTVIEWCONTROLLER
- Swift can't read the textDocumentProxy.documentContextBeforeInput after entering a newline
- Custom InputView Keyboard Height
- determine safe area for UIInputViewController from UIScreen.main.bounds
- Adding UIDatePicker a non-Date option
- How do I use an inputView with a SwiftUI TextField?
- How to make a custom keyboard using Objective-C that can type images
- What is the difference between UIViewController and UIInputViewController ios swift
- Want to text input in custom keyboard extension
- Can't use UICollectionView in UIInputViewController for keyboard extension
- UIInputViewController (Custom Keyboard) - UIButton action not being triggered - Why, Oh Why?
- UIInputViewController being dismissed after leaving and returning to view controller
- UIInputViewController can't response action that come from UIButton before iOS10
- inputViewController of superview gets called when tapped on subview(UITextView)
- viewWillTransition is giving the wrong size
- UIInputViewController NSAutoresizingMaskLayoutConstraint issue
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Reason Apple recommended this is probably not performance.
AudioServicesPlaySystemSound(1104)will probably always play the same sound butplayInputClickmay play another sound in the future if Apple decides to change the input click sound.So they are the same right now but it might change and if it does your app will be the only one playing the old sound if you stick to use
AudioServicesPlaySystemSound(1104).