Search results for

“Popping Sound”

20,420 results found

Post

Replies

Boosts

Views

Activity

Play audio data, but without sound?
I am working with analog medical (eeg) data. I'm trying to allow for recording and scanning large files ~20-30 minutes in length. Core Audio seems like a great solution for storing and playing these files, however the catch is that I do not want to send any sound to an audio device. Everything is output graphically as waveforms. None of my considered solutions seem satisfactory:1. AudioComponentDescription.componentSubType = kAudioUnitSubType_GenericOutput for the output node seems similar to what I want, but since it isn't tied to the timing of a hardware output device, it wouldn't let me play files in real-time at the same speed they were recorded.2. Playing the file with the volume turned down, or with the mixer node disabled is a possibility, but when I tried it I got zeroed out audio playback (logical but unfortunate in my case)3. Having a NSTimer callback repeatedly call ExtendedAudioFile.ExtAudioFileSeek is another possibility, but seems like it is very much not how
2
0
715
Apr ’17
Detect sound or audio from microphone and take action
I am designing an iOS app which works on sound response.The sound can be of anything. Whenever the user says something or basically when the microphone receives any sound I want to control the phone's flashlight or I want to take any action I want. That should not occur if there is no sound.The approach is simple u say something in microphone flashlight is ON you are quiet flashlight is OFF or u can say if mic recognise any sound coming from anywhere flashlight is ON if no sound flashlight is OFF. Thats it.
2
0
630
Jul ’16
Reply to How to Fix Cracking and Popping Sound ?
what worked for my case was: (Menu Bar): Go > Computer > Macintosh HD > Library > Preferences > Audio Delete the com.apple.audio.DeviceSettings.plist and com.apple.audio.SystemSettings.plist files Empty trash Restart your computer After this I tried listening to the same YouTube videos and Spotify and no longer had any crackling/popping so far. Was really excited that Apple's Support was able to help solve it so quickly. Hope this helps!
Topic: Community SubTopic: Apple Developers Tags:
Jul ’24
Reply to How to Fix Cracking and Popping Sound ?
what worked for my case was: (Menu Bar): Go > Computer > Macintosh HD > Library > Preferences > Audio Delete the com.apple.audio.DeviceSettings.plist and com.apple.audio.SystemSettings.plist files Empty trash Restart your computer After this I tried listening to the same YouTube videos and Spotify and no longer had any crackling/popping so far. Was really excited that Apple's Support was able to help solve it so quickly. Hope this helps!
Topic: Community SubTopic: Apple Developers Tags:
Jul ’24
macOS avoid VoiceOver audio ducking for certain sounds
Is it possible to play certain sounds from a macOS app that remain at full volume when VoiceOver is speaking? Here's some background: I want to play sounds from my app (even when it's not in focus) to notify a VoiceOver user that an action is available (this action can be triggerred even when the app is not in focus; and is comfigurable by the user). I tired using an NSSound for this, but VoiceOver ducks the audio of my sound when it is speaking. Is there some way to avoid audio ducking for certain sounds? Or is there another, perhaps lower level, audio API that i can use to achieve this?
1
0
549
Dec ’24
direct phone call without pop-up?
I have a button in my app that places a call when touched.Code - let call = detail.value(forKey: Phone) as? String if let url = URL(string: tel:/ { UIApplication.shared.open(url, options: [:], completionHandler: nil) }However, when touched, a pop up appears asking to Call or Cancel. Is there a way to take the user direct to the phone app and avoid this pop up?
1
0
1.1k
Mar ’17
iOS - Play audio from remote URL, with audio meters
So, I've been working on an app, and for part of it I have a record/playback system. For this to work correctly, I need to be able to: Record and play back local audio Use power levels to hook up to an audio level meter Play back remote audio from my server To be clear, I'm not asking for any help with the UI: I already have a working interface as well as an audio level meter. The problem is, AVAudioPlayer has audio metering, but it can't stream audio from the network. AVPlayer, on the other hand, can stream audio from the network, but doesn't have audio metering. I'm not sure what the thought process behind that was, but so far it seems like neither option works. AVAudioPlayer could work if I just downloaded the audio before playing, but it would be a lot nicer if I could just stream it. Is there something I'm missing, or is it impossible to stream audio with AVAudioPlayer (or have metering with AVPlayer)?
1
0
1.8k
Aug ’20
Reply to How to Fix Cracking and Popping Sound ?
I listen to music via Bluetooth on a BoseQC45 headphones on a M1 Max (64GB Ram) without any memory pressure, and this glitch happens very often (while typing this text, the glitch happened at least 3 times - it sounds like a scratch sound you would get on the old vinyl records). For me I noticed the glitch or pop / crackle sound occurs when a A2DP packet flushed occurs. At first I thought it was RF interference, but I am doubting this more and more. I am considering getting a bluetooth dongle for the M1, but have not gotten round to do that just yet. Has apple responded to this problem in this thread yet? Here is a log extract of when the sound glitch occurs: error 19:46:49.546658+1200 bluetoothd A2DP packet flushed: L2CAP (chip) flush occured. Current sequence=40623, timestamp=18463685
Topic: Community SubTopic: Apple Developers Tags:
Apr ’24
Alert structure and playing sound
Hello, I'm working on an SwiftUI iOS app that shows a list of timers. When the timer is up then I pop up an alert struct. The user hits ok to dismiss the alert. I am trying to include an alarm sound using AVFoundation. I can get the sounds to play if I change the code to play when a button clicks so I believe I have the url path correct. But I really want it to play during the alert pop up. I have not been able to find examples where this is done using an alert so I suspect I need a custom view but thought I'd try the alert route first. Anyone try this before? @State var audioPlayer: AVAudioPlayer? .alert(isPresented: $showAlarmAlert) { playSound() -- Calls AVFoundation return Alert(title: Text(Time's Up!)) } func playSound() { let alertSoundPath = Bundle.main.url(forResource: classicAlarm, withExtension: mp3)! do { audioPlayer = try AVAudioPlayer(contentsOf: alertSoundPath) audioPlayer?.play() } catch { appData.logger.debug(Error playing sound: (alertSoundPath)) }
4
0
228
Apr ’25
Special audio tracks in AVPlayerViewController audio selector
We are facing an issue with the audio tracks displayed by AVPlayerViewController in our tvOS client. When we have a stream with alternative audio tracks, we set for sure the language and the name in the manifest of the HLS stream as described by https://tools.ietf.org/html/rfc8216 eg: NAME=French,DEFAULT=NO,AUTOSELECT=YES,LANGUAGE=fr This works for common audio tracks with different languages. The Audio Track is then displayed correctly by AVPlayerViewController, showing the name of the language localized based on the user's device language preference. But as soon as we offer more special audio tracks like Miscellaneous our audio track is defined like: NAME=Other (mis),DEFAULT=NO,AUTOSELECT=YES,LANGUAGE=mis When it comes to displaying these audio tracks to the customer, they appear as mis. This cryptic Audio Track name is the issue. Other special audio tracks with the same issue are: mis, for uncoded languages; for languages that
2
0
2.5k
Jun ’20
NavigationPath pop to root working without animation
Here's the same issue at Stack Overflow : https://stackoverflow.com/questions/73753796/why-doesnt-clearing-the-new-ios-16-swiftui-navigationpath-to-pop-to-root-anim // @State var path = NavigationPath() - Declared in a view path.removeLast() This code above works well with animation, popping up the top view. However, path.removeLast(path.count) Or path = .init() These codes, popping up to root view, works without animation. Some guy said this is a bug and he've already reported to Apple but I'm wondering how the others are handling with this issue. Is it the best way to hold on and wait apple to fix it?
1
0
2.2k
Oct ’22
iOS14 missing TabBar on popping multiple ViewControllers
Seems like there is a confirmed bug on Xcode12 + iOS14. I have a UINavigationController on each item of a UITabBar, and I've set hidesBottomBarWhenPushed to YES on every secondary ViewControllers, so the TabBar will only be shown on the rootViewController of navigationController. But when I try popping multiple ViewControllers, like pop C from stacks like A-B-C, I found that the TabBar just missing on A. Also another weird part, when I print navigationController.viewControllers in viewWillDisappear: method on C, I found it printing like C-A. How C moved to the top of the array?? This is confirmed on a simple demo app, wonder when it will be fixed.
18
0
10k
Sep ’20
PencilKit - Pop up menu + text box
Hi, I’m wanting to use PencilKit with my SwiftUI application. I notice on the iPhone it has an additional pop up menu (+) which has some additional features. I can’t seem to find anywhere where I can add this secondary pop up menu? And also, how can i include a text box as done on the Apple apps using Sketch? thanks
0
0
534
Mar ’21
Play audio data, but without sound?
I am working with analog medical (eeg) data. I'm trying to allow for recording and scanning large files ~20-30 minutes in length. Core Audio seems like a great solution for storing and playing these files, however the catch is that I do not want to send any sound to an audio device. Everything is output graphically as waveforms. None of my considered solutions seem satisfactory:1. AudioComponentDescription.componentSubType = kAudioUnitSubType_GenericOutput for the output node seems similar to what I want, but since it isn't tied to the timing of a hardware output device, it wouldn't let me play files in real-time at the same speed they were recorded.2. Playing the file with the volume turned down, or with the mixer node disabled is a possibility, but when I tried it I got zeroed out audio playback (logical but unfortunate in my case)3. Having a NSTimer callback repeatedly call ExtendedAudioFile.ExtAudioFileSeek is another possibility, but seems like it is very much not how
Replies
2
Boosts
0
Views
715
Activity
Apr ’17
Detect sound or audio from microphone and take action
I am designing an iOS app which works on sound response.The sound can be of anything. Whenever the user says something or basically when the microphone receives any sound I want to control the phone's flashlight or I want to take any action I want. That should not occur if there is no sound.The approach is simple u say something in microphone flashlight is ON you are quiet flashlight is OFF or u can say if mic recognise any sound coming from anywhere flashlight is ON if no sound flashlight is OFF. Thats it.
Replies
2
Boosts
0
Views
630
Activity
Jul ’16
Is it possible to detect a system alert popping up?
Is it possible to detect a system alert popping up? Such as low power alert.
Replies
1
Boosts
0
Views
1.3k
Activity
Jan ’23
Reply to How to Fix Cracking and Popping Sound ?
what worked for my case was: (Menu Bar): Go > Computer > Macintosh HD > Library > Preferences > Audio Delete the com.apple.audio.DeviceSettings.plist and com.apple.audio.SystemSettings.plist files Empty trash Restart your computer After this I tried listening to the same YouTube videos and Spotify and no longer had any crackling/popping so far. Was really excited that Apple's Support was able to help solve it so quickly. Hope this helps!
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to How to Fix Cracking and Popping Sound ?
what worked for my case was: (Menu Bar): Go > Computer > Macintosh HD > Library > Preferences > Audio Delete the com.apple.audio.DeviceSettings.plist and com.apple.audio.SystemSettings.plist files Empty trash Restart your computer After this I tried listening to the same YouTube videos and Spotify and no longer had any crackling/popping so far. Was really excited that Apple's Support was able to help solve it so quickly. Hope this helps!
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Jul ’24
macOS avoid VoiceOver audio ducking for certain sounds
Is it possible to play certain sounds from a macOS app that remain at full volume when VoiceOver is speaking? Here's some background: I want to play sounds from my app (even when it's not in focus) to notify a VoiceOver user that an action is available (this action can be triggerred even when the app is not in focus; and is comfigurable by the user). I tired using an NSSound for this, but VoiceOver ducks the audio of my sound when it is speaking. Is there some way to avoid audio ducking for certain sounds? Or is there another, perhaps lower level, audio API that i can use to achieve this?
Replies
1
Boosts
0
Views
549
Activity
Dec ’24
direct phone call without pop-up?
I have a button in my app that places a call when touched.Code - let call = detail.value(forKey: Phone) as? String if let url = URL(string: tel:/ { UIApplication.shared.open(url, options: [:], completionHandler: nil) }However, when touched, a pop up appears asking to Call or Cancel. Is there a way to take the user direct to the phone app and avoid this pop up?
Replies
1
Boosts
0
Views
1.1k
Activity
Mar ’17
iOS - Play audio from remote URL, with audio meters
So, I've been working on an app, and for part of it I have a record/playback system. For this to work correctly, I need to be able to: Record and play back local audio Use power levels to hook up to an audio level meter Play back remote audio from my server To be clear, I'm not asking for any help with the UI: I already have a working interface as well as an audio level meter. The problem is, AVAudioPlayer has audio metering, but it can't stream audio from the network. AVPlayer, on the other hand, can stream audio from the network, but doesn't have audio metering. I'm not sure what the thought process behind that was, but so far it seems like neither option works. AVAudioPlayer could work if I just downloaded the audio before playing, but it would be a lot nicer if I could just stream it. Is there something I'm missing, or is it impossible to stream audio with AVAudioPlayer (or have metering with AVPlayer)?
Replies
1
Boosts
0
Views
1.8k
Activity
Aug ’20
Reply to How to Fix Cracking and Popping Sound ?
I listen to music via Bluetooth on a BoseQC45 headphones on a M1 Max (64GB Ram) without any memory pressure, and this glitch happens very often (while typing this text, the glitch happened at least 3 times - it sounds like a scratch sound you would get on the old vinyl records). For me I noticed the glitch or pop / crackle sound occurs when a A2DP packet flushed occurs. At first I thought it was RF interference, but I am doubting this more and more. I am considering getting a bluetooth dongle for the M1, but have not gotten round to do that just yet. Has apple responded to this problem in this thread yet? Here is a log extract of when the sound glitch occurs: error 19:46:49.546658+1200 bluetoothd A2DP packet flushed: L2CAP (chip) flush occured. Current sequence=40623, timestamp=18463685
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Apr ’24
Immersive Audio
visionOS App how to play Spatial Audio, Ambient Audio and Channel Audio ?
Replies
0
Boosts
0
Views
617
Activity
Dec ’23
Alert structure and playing sound
Hello, I'm working on an SwiftUI iOS app that shows a list of timers. When the timer is up then I pop up an alert struct. The user hits ok to dismiss the alert. I am trying to include an alarm sound using AVFoundation. I can get the sounds to play if I change the code to play when a button clicks so I believe I have the url path correct. But I really want it to play during the alert pop up. I have not been able to find examples where this is done using an alert so I suspect I need a custom view but thought I'd try the alert route first. Anyone try this before? @State var audioPlayer: AVAudioPlayer? .alert(isPresented: $showAlarmAlert) { playSound() -- Calls AVFoundation return Alert(title: Text(Time's Up!)) } func playSound() { let alertSoundPath = Bundle.main.url(forResource: classicAlarm, withExtension: mp3)! do { audioPlayer = try AVAudioPlayer(contentsOf: alertSoundPath) audioPlayer?.play() } catch { appData.logger.debug(Error playing sound: (alertSoundPath)) }
Replies
4
Boosts
0
Views
228
Activity
Apr ’25
Special audio tracks in AVPlayerViewController audio selector
We are facing an issue with the audio tracks displayed by AVPlayerViewController in our tvOS client. When we have a stream with alternative audio tracks, we set for sure the language and the name in the manifest of the HLS stream as described by https://tools.ietf.org/html/rfc8216 eg: NAME=French,DEFAULT=NO,AUTOSELECT=YES,LANGUAGE=fr This works for common audio tracks with different languages. The Audio Track is then displayed correctly by AVPlayerViewController, showing the name of the language localized based on the user's device language preference. But as soon as we offer more special audio tracks like Miscellaneous our audio track is defined like: NAME=Other (mis),DEFAULT=NO,AUTOSELECT=YES,LANGUAGE=mis When it comes to displaying these audio tracks to the customer, they appear as mis. This cryptic Audio Track name is the issue. Other special audio tracks with the same issue are: mis, for uncoded languages; for languages that
Replies
2
Boosts
0
Views
2.5k
Activity
Jun ’20
NavigationPath pop to root working without animation
Here's the same issue at Stack Overflow : https://stackoverflow.com/questions/73753796/why-doesnt-clearing-the-new-ios-16-swiftui-navigationpath-to-pop-to-root-anim // @State var path = NavigationPath() - Declared in a view path.removeLast() This code above works well with animation, popping up the top view. However, path.removeLast(path.count) Or path = .init() These codes, popping up to root view, works without animation. Some guy said this is a bug and he've already reported to Apple but I'm wondering how the others are handling with this issue. Is it the best way to hold on and wait apple to fix it?
Replies
1
Boosts
0
Views
2.2k
Activity
Oct ’22
iOS14 missing TabBar on popping multiple ViewControllers
Seems like there is a confirmed bug on Xcode12 + iOS14. I have a UINavigationController on each item of a UITabBar, and I've set hidesBottomBarWhenPushed to YES on every secondary ViewControllers, so the TabBar will only be shown on the rootViewController of navigationController. But when I try popping multiple ViewControllers, like pop C from stacks like A-B-C, I found that the TabBar just missing on A. Also another weird part, when I print navigationController.viewControllers in viewWillDisappear: method on C, I found it printing like C-A. How C moved to the top of the array?? This is confirmed on a simple demo app, wonder when it will be fixed.
Replies
18
Boosts
0
Views
10k
Activity
Sep ’20
PencilKit - Pop up menu + text box
Hi, I’m wanting to use PencilKit with my SwiftUI application. I notice on the iPhone it has an additional pop up menu (+) which has some additional features. I can’t seem to find anywhere where I can add this secondary pop up menu? And also, how can i include a text box as done on the Apple apps using Sketch? thanks
Replies
0
Boosts
0
Views
534
Activity
Mar ’21