Sound and Haptics

RSS for tag

Create meaningful and delightful experiences that engage a wider range of senses with sound and haptic design.

Posts under Sound and Haptics tag

25 Posts
Sort by:
Post not yet marked as solved
4 Replies
1.2k Views
Is it possible to customize haptics on Apple Watch (something like CoreHaptics) rather than using standard haptics out of WatchKit? I'm looking for a way to play a continuous waveform (like a more complex version of Breathe).
Posted Last updated
.
Post not yet marked as solved
0 Replies
174 Views
I'm trying to recreate the watchOS App Store layout however there are a few parts I am not how to recreate. When scrolling an Elliptical Style List the cells will "snap" up if you are scrolling slowly. This effect works well with regular size cells with just a line of text but makes the List scrolling seem a glitchy when the cells are taller. In the App Store app this "snap" effect is not there. When scrolling there is still a visible "Elliptical Scroll Style" but this effect is missing for the "See All" cells which scroll as if it were a "Plain Style List". How would you create this effect? Also when using a Plain Style List and you scroll to the very top or bottom you get a "heavy" haptic feedback which is absent on Elliptical Style Lists. The App Store app still has this "heavy" haptic feedback when you get to the top or bottom yet it uses an Elliptical List style (or at least something in between as explained above.)
Posted Last updated
.
Post not yet marked as solved
0 Replies
169 Views
I have a basic List made in SwiftUI. When I scroll with the Digital Crown I get the "light haptics" however when I get to the top or bottom of the list I don't get the more pronounced dent. Update - If I use a plain list style then I get the haptics as expected. However it should work with the elliptical style as this is used in the system. The console outputs the following 2022-05-19 23:32:53.782614+0200 WatchApp WatchKit Extension[326:41020] [default] Error: Error Domain=NSOSStatusErrorDomain Code=-536870187 "(null)" 2022-05-19 23:32:53.783181+0200 WatchApp WatchKit Extension[326:41020] [detents] could not play detent NO, 2, Error Domain=NSOSStatusErrorDomain Code=-536870187 "(null)", (         {         Gain = "0.01799999922513962";         OutputType = 0;         SlotIndex = 4;     },         {         Gain = "0.4900000095367432";         OutputType = 1;         SlotIndex = 5;     } ) Here is my code struct ContentView: View {     var body: some View {             List {                                  ForEach(0..<100) { i in                                         NavigationLink(destination: FeedView()) {                         Text("Hello")                     }                 }                              }.navigationTitle("Title")         } }
Posted Last updated
.
Post not yet marked as solved
0 Replies
102 Views
How is the Facebook app able to make sounds when the user clicks on things with the sound on the device completely off? Does the API really allow this? Doesn’t this violate some UI standard that Apple should be enforcing apps to follow?
Posted
by jonathaz.
Last updated
.
Post not yet marked as solved
0 Replies
194 Views
I'm working on an app that uses CoreHaptics to play a synchronised pattern of vibrations and audio. The problem is that the audio only gets played through the iPhones speakers (if the mute switch is not turned on). As soon as I connect my AirPods to the phone the audio stops playing, but the haptics continue. My code looks something like this: let engine = CHHapticEngine() ... var events = [CHHapticEvent]() ... let volume: Float = 1 let decay: Float = 0.5 let sustained: Float = 0.5 let audioParameters = [ CHHapticEventParameter(parameterID: .audioVolume, value: volume), CHHapticEventParameter(parameterID: .decayTime, value: decay), CHHapticEventParameter(parameterID: .sustained, value: sustained) ] let breathingTimes = pacer.breathingTimeInSeconds let combinedTimes = breathingTimes.inhale + breathingTimes.exhale let audioEvent = CHHapticEvent( audioResourceID: selectedAudio, parameters: audioParameters, relativeTime: 0, duration: combinedTimes ) events.append(audioEvent) ... let pattern = try CHHapticPattern(events: events, parameterCurves: []) let player = try engine.makeAdvancedPlayer(with: pattern) ... try player.start(atTime: CHHapticTimeImmediate) My idea to activate an audio session before the player starts, to indicate to the system that audio is played, also didn't changed the outcome: try AVAudioSession.sharedInstance().setActive(true) Is there a different way to route the audio from CoreHaptics to a different output other than the integrated speakers?
Posted Last updated
.
Post not yet marked as solved
0 Replies
215 Views
We are using the following code to check for the haptics support on the device import CoreHaptics let hapticCapability = CHHapticEngine.capabilitiesForHardware() let supportsHaptics: Bool = hapticCapability.supportsHaptics For some reason it returns false on iPhone 7 not only on my personal device (iOS 13) but some of our users reported the haptic settings missing from our app on iPhones 7 (iOS 15) as well. I have just checked with this private api call that in fact the devices does support haptics (obviously, it has not physical home button) extension UIDevice {     var feedbackSupportLevel: Int? {         value(forKey: "_feedbackSupportLevel") as? Int     } } let supportsHaptics: Bool = UIDevice.current.feedbackSupportLevel == 2 And it returns true, as expected. Weird thing is that the haptics work perfectly fine, it's just the haptics support status is incorrect. So my question is: will we be rejected for checking the value of the _feedbackSupportLevel on UIDevice just to make sure we are correctly displaying available system features for our users on all of the devices?
Posted Last updated
.
Post not yet marked as solved
0 Replies
243 Views
We want to use Apple Pay sound effect in one of the commercial App my team is developing. It is an investment app and the sound will play when there is a successful transaction as a notification to the User. I wanted to know whether it is allowed or are there any licensing/legal issues. Appreciate your responses.
Posted Last updated
.
Post not yet marked as solved
1 Replies
335 Views
I've got volume in my implementation. Too much hurricane force volume. Though, the consistent problem is the volume is blasting when I create a ambient or channel mixer. (not a point or volumetric source. eg. calm breeze sound) I set the level on the mixer and nothing seems to happen. I'd like to set the volume lower. Though, on the spatial mixer, if I set the gain, rolloff and direct path level on the source node ( a point or volumetric source), then the spatial mixer case appears to work and no blasting audio. I've been following the wwdc examples. ( watched it about 4 times now) It appears I should not use the source node with the ambient and channel mixers? That seems to be only an option adding the parameter to the spatial mixer. The ambient mixer seems to only want the listener and a quaternion direction. ( I normalized to 1 ) If I set the calibration to relative spl on the sampler node but that always seems to cause blasting audio. I added the sound assets with dynamic using wav format at 32 bits and 44.1 khz. Also, are there any examples of the meta parameters? Is that how I could dynamically adjust the level? Think there was a passing reference to it in the wwdc video. Any pointers would be appreciated. I wonder if I'm making consistent assumptions on how phase works. I try to set up as much as possible before I start the engine. ( especially adding children nodes. )
Posted
by macnib.
Last updated
.
Post not yet marked as solved
0 Replies
368 Views
Hi, what is the best approach of customising the sound (notification) and haptic feedback on apple watch 6 and later? I wonder if I can play a sound/haptic feedback when receiving a remote (can be silent?) notification to apple watch? Thanks
Posted
by el2000.
Last updated
.
Post not yet marked as solved
7 Replies
3.3k Views
Hi, when I turn on my mic my speaker volume is low and I cannot hear any game sounds . This happened since I updated to iOS 14 . Can anyone help me with how to solve this issue.
Posted Last updated
.
Post not yet marked as solved
1 Replies
563 Views
Hi everyone. This is my first post on these forums, because this is first time I have not found any clues on internet regarding this question. I need to play sound (text to speech generated by AVSpeechSynthesizer) using a built-in speaker on Apple Watch Series 4+ (WatchOS 6.2.6+). I was able to make it work for Series 3. However, for series 4, it doesn't play via speakers, it plays via Bluetooth AirPods if they are connected, but they are not – there is no sound at all. Is it even possible to do? Any advice would be highly appreciated.
Posted Last updated
.
Post not yet marked as solved
2 Replies
563 Views
Hi! We're currently building a web extension with iOS as a primary target. Since haptics on iOS are really nice, we wanted to make use of it to give the experience a special feel on iPhone. However, haptics don't seem to work when called from SafariWebExtensionHandler... maybe because the messaging layer between the web extension and the native code is in the background (is it?), and haptics don't work in apps that are in the background. Anyway, is there any way we can make haptics work regardless?
Posted Last updated
.
Post not yet marked as solved
0 Replies
439 Views
On iOS 15 has anyone else noticed that sometimes notification sounds do not play? Works fine for a while and then nothing, returning again later ?
Posted
by paulb00.
Last updated
.