Search results for

“Popping Sound”

20,846 results found

Post

Replies

Boosts

Views

Activity

How to pause/stop all active audio playbacks when my application needs to start audio playback from background?
Intention: Our application goes to background (background audio playback enabled) > We open any iOS application that starts audio playback (i.e: youtube, or music player) > after some moments, our application activates it's audio session to start playingback some audio (while our application is still alive in the background)What We tried: When our application wants to play the audio from background, it set's the AVAudioSession category to AVAudioSessionCategoryPlayback. Expectation: The current foreground application with active audioplayback will pause it's audio playback, and our application's playback will be the only sound that would be heard.Observation:The current foreground application keeps playing it's audio session. And our application fails to activate audiosession (from background) with non-mixable AVAudioSessionCategoryPlayback.Counter measure that We tried: With the above category, we also set AVAudioSession Options AV
0
0
1k
Mar ’20
How do you add a Audio Player to Xcode?
How can you add a live audio player to Xcode where they will have a interactive UI to control the audio and they will be able to exit out of the app and or turn their device off and it will keep playing? Is their a framework or API that will work for this? Thanks! Really need help with this…. 🤩 I have looked everywhere and haven’t found something that works….
0
0
1.5k
Mar ’22
ReplayKit with background audio
Hi, when I start a screen recording session (with microphone enabled) the phone automatically switch every audio playback from the default speaker to the call speaker (the one in the top, used during phone calls) and it returns normal when I stop the recording.The same result happens from my app using ReplayKit and from iOS 11 system screen recording, it behave the same, every sound (from game, spotify, whatever...) comes only from the top speaker, resulting in a very low volume.I tryed with iPhone 6s, 7 and X with iOS 11.2.2 and iOS 11.2.5, nothing change.I don't understand if this is a bug or a feature, and most of all if I can override this setting in my app, allowing the user to record his voice from microphone with music in the background.Many thanks,Michele
1
0
2.0k
Jan ’18
Audio quality on custom rate
hi, i have a simple avaudioplayer, wich runs with a custom rate from -16% to +16%. If the rate is not exactly 1.0 the Sound quality is really bad.i tried 48khz aiff and wav format And set a 48khz sample rate To my Audio Session as well.quality is still bad... can anyone help me?
2
0
4.1k
Jun ’15
Ans: Solving 6S distorted audio - avoid bad audio format assumptions
Hi there,I have this following audio distorted audio issue. I play 48kHz Audio AAC file using the AVPlayer Framework and I experience distorted audio only on iPhone 6S.. So I'm trying to avoid some bad assumptions about audio formats with no luck with this following code :+ (void) setupAudioSpeaker{NSError * audioSessionError = nil; [[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error: &audioSessionError];if (audioSessionError) { NSLog(@AVAudioSession Error %ld, %@, (long)audioSessionError.code, audioSessionError.localizedDescription); }NSTimeInterval bufferDuration =.005; [[AVAudioSession sharedInstance] setPreferredIOBufferDuration:bufferDuration error:&audioSessionError];if (audioSessionError) { NSLog(@Error %ld, %@, (long)audioSessionError.code, audioSessionError.localizedDescription); }double sampleRate = 48000; [[AVAudioSession sharedInstance] setPreferredSampleRate:sampleRate error:&audioSessionError];if (audioSessio
2
0
1.3k
Oct ’15
WebRTC recording audio has buzz
I'm using Release 34 (Safari 11.0, WebKit 12604.1.27.0.1)I use the following code to get microphone input and forward the audio to speakers -- note that I use headset so no feedback.var _streamSource; var _audioContext= new webkitAudioContext(); function startMic() { var constraints = { audio:true, video:false }; navigator.mediaDevices.getUserMedia(constraints). then(micStarted).catch(micDenied); } function micStarted(stream) { _streamSource= _audioContext.createMediaStreamSource(stream); _streamSource.connect(_audioContext.destination); } function micDenied(error) { console.log(error) }The audio playback of mic input is horribly distorted with a buzzing sound which makes it hard to listen to. I tried the same code in other browsers and the microphone audio plays back fine without buzz.
1
0
1.5k
Jul ’17
Strange Behavior of UITabBarController selectedIndex and UINavigationController pop
UITabBarController | | VC_Tab1 --------------------------- VC_Tab2 | | | | VC_Tab1_Child VC_Tab2_Child | (HeaderView) | (MyButton) The structure of the view controllers and views in the project is as described above. self.navigationController?.popToRootViewController(animated: false) tabBarController.selectedIndex = 1 When popToRootViewController(animated: false) is called in VC_Tab1_Child, followed by setting the tab controller’s selectedIndex = 1, the following results are observed: viewWillAppear(_:), deinit, viewDidAppear(_:), The originally expected results are as follows viewWillDisappear(_:), viewDidDisappear(_:), deinit, deinit, deinit, headerView.backButton.rx.tap -> Event completed headerView.backButton.rx.tap -> isDisposed viewWillAppear(_:), viewDidAppear(_:), The HeaderView belonging to VC_Tab1_Child was not deallocated, and the resources associated with that view were also not released. Similarly, VC_Tab1_Child.viewWillDisappear and VC_Tab1_Child.didDisappear were not called. s
0
0
355
Dec ’24
Bachelor Audio Streaming
Hello fellow developers, I am currently working on my bachelor thesis. Therefore my task is to develop a rudimentary solution to stream 2 channel audio from MacOS to an IOS device over Wifi, highest quality possible. Latency is not a major concern, but keeping it low would be great. So i thought of developing something like Wifi2Hifi. That would probably be as rudimentary as possible. I'm not very deep inside the subject. Still researching and collecting thoughts and ideas. If someone could point me to sources and literature on audio related networking/streaming, i would be glad. Also thoughts on networking protocols i could use, or api's etc., would be greatly appreciated. Thanks a lot.
1
0
296
Jul ’20
empty pop up at ipv6
Dear all,My app is being rejected for almost 16 times now citing te below reason.We discovered one or more bugs in your app when reviewed on iPhone and iPad running iOS 11.2.5 on Wi-Fi connected to an IPv6 network.Specifically, after inputing the demo account credentials in the fields provided and tapping Login, we are presented with a blank alert with “OK” listed at the bottomMy base URL is ipv6 enabled.PLEASE I NEED URGENT HELP IN RESOLVING THIS. MY CLIENT IS REALLY FURIOUS BECAUSE OF THIS PLEASE HELP
0
0
348
Feb ’18
ATTrackingManager can't be pop up
`import UIKit import AppTrackingTransparency func requestDFA(){ if #available(iOS 14, *){ ATTrackingManager.requestTrackingAuthorization { status in switch status { case .authorized: // 用户已授权跟踪 print(Tracking authorization status: authorized) case .denied: // 用户拒绝跟踪 print(Tracking authorization status: denied) case .notDetermined: // 用户尚未做出选择 print(Tracking authorization status: not determined) case .restricted: // 跟踪受限,例如在家长控制设置下 print(Tracking authorization status: restricted) default: print(Tracking authorization status: unknown) } } } } @main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. requestDFA() return true } // MARK: UISceneSession Lifecyclez func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptio
1
0
935
Apr ’24
Record and PlayBack audio
Hello,I want to do recording and playing back audio on my iOS device.Can someone give me a short hint, which classes are useful for this use case?I googled around this topic a lot and read a lot of different things.But I'm not really sure, what classes are the right one for me.Examples: AVAudioSinkNode, AVAudioSourceNode, AVAudioSession, AVAudioRecorder,AVAudioPlayer, AVAudioQueue etc. Maybe someone could show me a code snippet or sample project (if possible).My current state: I would try it with AVAudioRecorder and AVAudioPlayer.My Recorder class logic:if let dir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first { let file = dir.appendingPathComponent(audiofile.wav) // setup audio session with crazy framework let format: [String: Any] = [AVSampleRateKey: 44100.0, AVNumberOfChannelsKey : 2, AVFormatIDKey: kAudioFormatLinearPCM, AVEncoderBitRateKey: 320000, AVEncoderAudioQualityKey : AVAudioQuality.high.rawValue] recorder = try AVAudioRecorder.init(url: file, sett
0
0
2.8k
Sep ’19
How to pause/stop all active audio playbacks when my application needs to start audio playback from background?
Intention: Our application goes to background (background audio playback enabled) > We open any iOS application that starts audio playback (i.e: youtube, or music player) > after some moments, our application activates it's audio session to start playingback some audio (while our application is still alive in the background)What We tried: When our application wants to play the audio from background, it set's the AVAudioSession category to AVAudioSessionCategoryPlayback. Expectation: The current foreground application with active audioplayback will pause it's audio playback, and our application's playback will be the only sound that would be heard.Observation:The current foreground application keeps playing it's audio session. And our application fails to activate audiosession (from background) with non-mixable AVAudioSessionCategoryPlayback.Counter measure that We tried: With the above category, we also set AVAudioSession Options AV
Replies
0
Boosts
0
Views
1k
Activity
Mar ’20
Change Password, pop up...
Thank you !!!! To whoever fixed/added this : ) C
Replies
0
Boosts
0
Views
252
Activity
Aug ’15
Programmatically pop to specific View
Hi,I'm developing an app with SWIFTUIand I can't navigate back to a specific view.(the same in UIKit of popToViewController)Can you help me?
Replies
0
Boosts
0
Views
510
Activity
Sep ’19
How do you add a Audio Player to Xcode?
How can you add a live audio player to Xcode where they will have a interactive UI to control the audio and they will be able to exit out of the app and or turn their device off and it will keep playing? Is their a framework or API that will work for this? Thanks! Really need help with this…. 🤩 I have looked everywhere and haven’t found something that works….
Replies
0
Boosts
0
Views
1.5k
Activity
Mar ’22
Convert Video to Audio
I have a converted video file(.mp4) to audio file(.mp3). Where can I store it in my iphone and how can i do using Objective C/C++(primary)? Technologies used: FFMPEG OBJ-C Wrappers C++ Thanks for your help.
Replies
0
Boosts
0
Views
477
Activity
Apr ’21
ReplayKit with background audio
Hi, when I start a screen recording session (with microphone enabled) the phone automatically switch every audio playback from the default speaker to the call speaker (the one in the top, used during phone calls) and it returns normal when I stop the recording.The same result happens from my app using ReplayKit and from iOS 11 system screen recording, it behave the same, every sound (from game, spotify, whatever...) comes only from the top speaker, resulting in a very low volume.I tryed with iPhone 6s, 7 and X with iOS 11.2.2 and iOS 11.2.5, nothing change.I don't understand if this is a bug or a feature, and most of all if I can override this setting in my app, allowing the user to record his voice from microphone with music in the background.Many thanks,Michele
Replies
1
Boosts
0
Views
2.0k
Activity
Jan ’18
Audio quality on custom rate
hi, i have a simple avaudioplayer, wich runs with a custom rate from -16% to +16%. If the rate is not exactly 1.0 the Sound quality is really bad.i tried 48khz aiff and wav format And set a 48khz sample rate To my Audio Session as well.quality is still bad... can anyone help me?
Replies
2
Boosts
0
Views
4.1k
Activity
Jun ’15
Ans: Solving 6S distorted audio - avoid bad audio format assumptions
Hi there,I have this following audio distorted audio issue. I play 48kHz Audio AAC file using the AVPlayer Framework and I experience distorted audio only on iPhone 6S.. So I'm trying to avoid some bad assumptions about audio formats with no luck with this following code :+ (void) setupAudioSpeaker{NSError * audioSessionError = nil; [[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error: &audioSessionError];if (audioSessionError) { NSLog(@AVAudioSession Error %ld, %@, (long)audioSessionError.code, audioSessionError.localizedDescription); }NSTimeInterval bufferDuration =.005; [[AVAudioSession sharedInstance] setPreferredIOBufferDuration:bufferDuration error:&audioSessionError];if (audioSessionError) { NSLog(@Error %ld, %@, (long)audioSessionError.code, audioSessionError.localizedDescription); }double sampleRate = 48000; [[AVAudioSession sharedInstance] setPreferredSampleRate:sampleRate error:&audioSessionError];if (audioSessio
Replies
2
Boosts
0
Views
1.3k
Activity
Oct ’15
WebRTC recording audio has buzz
I'm using Release 34 (Safari 11.0, WebKit 12604.1.27.0.1)I use the following code to get microphone input and forward the audio to speakers -- note that I use headset so no feedback.var _streamSource; var _audioContext= new webkitAudioContext(); function startMic() { var constraints = { audio:true, video:false }; navigator.mediaDevices.getUserMedia(constraints). then(micStarted).catch(micDenied); } function micStarted(stream) { _streamSource= _audioContext.createMediaStreamSource(stream); _streamSource.connect(_audioContext.destination); } function micDenied(error) { console.log(error) }The audio playback of mic input is horribly distorted with a buzzing sound which makes it hard to listen to. I tried the same code in other browsers and the microphone audio plays back fine without buzz.
Replies
1
Boosts
0
Views
1.5k
Activity
Jul ’17
Strange Behavior of UITabBarController selectedIndex and UINavigationController pop
UITabBarController | | VC_Tab1 --------------------------- VC_Tab2 | | | | VC_Tab1_Child VC_Tab2_Child | (HeaderView) | (MyButton) The structure of the view controllers and views in the project is as described above. self.navigationController?.popToRootViewController(animated: false) tabBarController.selectedIndex = 1 When popToRootViewController(animated: false) is called in VC_Tab1_Child, followed by setting the tab controller’s selectedIndex = 1, the following results are observed: viewWillAppear(_:), deinit, viewDidAppear(_:), The originally expected results are as follows viewWillDisappear(_:), viewDidDisappear(_:), deinit, deinit, deinit, headerView.backButton.rx.tap -> Event completed headerView.backButton.rx.tap -> isDisposed viewWillAppear(_:), viewDidAppear(_:), The HeaderView belonging to VC_Tab1_Child was not deallocated, and the resources associated with that view were also not released. Similarly, VC_Tab1_Child.viewWillDisappear and VC_Tab1_Child.didDisappear were not called. s
Replies
0
Boosts
0
Views
355
Activity
Dec ’24
Bachelor Audio Streaming
Hello fellow developers, I am currently working on my bachelor thesis. Therefore my task is to develop a rudimentary solution to stream 2 channel audio from MacOS to an IOS device over Wifi, highest quality possible. Latency is not a major concern, but keeping it low would be great. So i thought of developing something like Wifi2Hifi. That would probably be as rudimentary as possible. I'm not very deep inside the subject. Still researching and collecting thoughts and ideas. If someone could point me to sources and literature on audio related networking/streaming, i would be glad. Also thoughts on networking protocols i could use, or api's etc., would be greatly appreciated. Thanks a lot.
Replies
1
Boosts
0
Views
296
Activity
Jul ’20
Capturing audio being sent to a specific driver
Hi All I need to be able to capture the audio being sent to a specific audio driver (such as internal speakers) and manipulate it - is there a specific API that allows me to capture audio without inserting anything into the audio graph? (Use case is to add audio to an NDI video feed for ingestion into another application) Thanks!
Replies
0
Boosts
0
Views
513
Activity
Dec ’20
empty pop up at ipv6
Dear all,My app is being rejected for almost 16 times now citing te below reason.We discovered one or more bugs in your app when reviewed on iPhone and iPad running iOS 11.2.5 on Wi-Fi connected to an IPv6 network.Specifically, after inputing the demo account credentials in the fields provided and tapping Login, we are presented with a blank alert with “OK” listed at the bottomMy base URL is ipv6 enabled.PLEASE I NEED URGENT HELP IN RESOLVING THIS. MY CLIENT IS REALLY FURIOUS BECAUSE OF THIS PLEASE HELP
Replies
0
Boosts
0
Views
348
Activity
Feb ’18
ATTrackingManager can't be pop up
`import UIKit import AppTrackingTransparency func requestDFA(){ if #available(iOS 14, *){ ATTrackingManager.requestTrackingAuthorization { status in switch status { case .authorized: // 用户已授权跟踪 print(Tracking authorization status: authorized) case .denied: // 用户拒绝跟踪 print(Tracking authorization status: denied) case .notDetermined: // 用户尚未做出选择 print(Tracking authorization status: not determined) case .restricted: // 跟踪受限,例如在家长控制设置下 print(Tracking authorization status: restricted) default: print(Tracking authorization status: unknown) } } } } @main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. requestDFA() return true } // MARK: UISceneSession Lifecyclez func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptio
Replies
1
Boosts
0
Views
935
Activity
Apr ’24
Record and PlayBack audio
Hello,I want to do recording and playing back audio on my iOS device.Can someone give me a short hint, which classes are useful for this use case?I googled around this topic a lot and read a lot of different things.But I'm not really sure, what classes are the right one for me.Examples: AVAudioSinkNode, AVAudioSourceNode, AVAudioSession, AVAudioRecorder,AVAudioPlayer, AVAudioQueue etc. Maybe someone could show me a code snippet or sample project (if possible).My current state: I would try it with AVAudioRecorder and AVAudioPlayer.My Recorder class logic:if let dir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first { let file = dir.appendingPathComponent(audiofile.wav) // setup audio session with crazy framework let format: [String: Any] = [AVSampleRateKey: 44100.0, AVNumberOfChannelsKey : 2, AVFormatIDKey: kAudioFormatLinearPCM, AVEncoderBitRateKey: 320000, AVEncoderAudioQualityKey : AVAudioQuality.high.rawValue] recorder = try AVAudioRecorder.init(url: file, sett
Replies
0
Boosts
0
Views
2.8k
Activity
Sep ’19