I am trying to get the charactersics of an attached bluetooth audio sink in my app. Is this possible? I have not had any success with the following code:- (void)startScanning { self.bluetoothManager = [[CBCentralManager alloc] initWithDelegate:self queue:nil]; } - (void)centralManagerDidUpdateState:(CBCentralManager *)central { if (central.state == CBCentralManagerStatePoweredOn) { CBUUID *audioSink = [CBUUID UUIDWithString:@110B]; [self.bluetoothManager scanForPeripheralsWithServices:@[ audioSink ] options:nil]; [self.bluetoothManager retrieveConnectedPeripheralsWithServices:@[ audioSink ]]; } } - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI { // Never calls back } - (void)centralManager:(CBCentralManager *)central didRetrieveConnectedPeripherals:(NSArray *)peripherals { // Always empty }I am pretty sure the UUID is correct, lifted from here: https://www.bluetooth.org/en-us/
Search results for
Popping Sound
19,357 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi Framusrock,That sounds like a bug indeed - please, don't hesitate to file a report.Are you running GL or Metal?
Topic:
Graphics & Games
SubTopic:
SceneKit
Tags:
Hi! I have an issue with Audio interruption working properly. Everything works very well both on device or simulator while in debug mode. However Audio does not resume playing after incomming call when device is disconnected from Xcode... Please advise me why could this be happening? What am I doing not right? Here is my code which is inside of AppDelegate: -(void)audioInterruption:(NSNotification*)notification{ NSNumber *interruptionType = [[notification userInfo] objectForKey:AVAudioSessionInterruptionTypeKey]; NSNumber *interruptionOption = [[notification userInfo] objectForKey:AVAudioSessionInterruptionOptionKey]; switch (interruptionType.unsignedIntegerValue) { case AVAudioSessionInterruptionTypeBegan:{ dispatch_async(dispatch_get_main_queue(), ^{ BOOL isPlayingWithOthers = [[AVAudioSession sharedInstance] isOtherAudioPlaying]; if(isPlayingWithOthers || [self.audioPlayer rate]>0) { [self.audioPlayer pause]; self.audioInterrupted = YES; } }); break; } case AVAudioSessionInterruptionTy
In beta 3, wakening my iMac from sleep saw random loss of the USB device (a Naim DAC). In beta 4, sound clicks and pops and eventually drops completely - only retrievable with a reboot.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Im writting a clock app and use avaudioplayer to play clock music, I've set the code below to prevent avauio goes to sleep AVAudioSession *audioSession = [AVAudioSession sharedInstance] ; [audioSession setCategory : AVAudioSessionCategoryPlayback error : nil] ; [audioSession setCategory: AVAudioSessionCategoryPlayback error: nil]; [audioSession setActive : YES error : nil] ;and use a timer to play audio when the current time and dest time match sleepTimer = [NSTimer scheduledTimerWithTimeInterval : 1 target : self selector : @selector(fireClock) userInfo : nil repeats : YES] ;in fireClock method I wrote NSLog to print something for checking if it still work when device is lockingand it works perfectly in simulator, nslog keeps printing while locking and avaudio plays while device sleeping,but on actual device testing , nslog stops printing(it means my app stops i think) and avaudio doesn't play.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
I have an app that plays music and applies certain filters using the processing tap functionality. Particularly I use LPF and HPF filters. I have sliders that control filter frequencies, which work OK except the filters seem to be very slow to react to any changes. I use AudioUnitSetParameter() from the app's main thread. I think the time for the new frequency setting to have an effect on the audio stream is about 0.3-0.5 sec. I also know it's definitely not the GUI's slowness.I run my app on OSX 10.10. It's the same delay for both Debug and Release builds.Firstly, is this normal? And is there a way to make the filter AU's react faster to parameter changes?
I solve it ! I've added “Required background modes” - App plays audio or streams audio/video using Airplay into my Info.plistand my app can keep playing avaudioplayer while locking screen. Thanks for replying my question.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
When i try to install Ios 9, i get an error pop up. Unable to install, an error occured, ect tried multiple times. I have enough storage. It just wont install.
I asked our resident Core Audio Plumber to confirm my understanding of this object and here's some information I hope you find helpful.An AUAudioUnitPreset is just a translation of AUPreset -- a name and number that refer to a canned preset.typedef struct AUPreset { SInt32 presetNumber; CFStringRef presetName;} AUPreset;NS_CLASS_AVAILABLE(10_11, 9_0)@interface AUAudioUnitPreset : NSObject <NSSecureCoding>/! @property number @brief The preset's unique numeric identifier.*/@property (NS_NONATOMIC_IOSONLY) NSInteger number;/! @property name @brief The preset's name.*/@property (NS_NONATOMIC_IOSONLY, copy) NSString *name;@endWhen you talk about saving and restoring parameters values, that's the fullState dictionary which maps to the V2 kAudioUnitProperty_ClassInfo property. See AUAudioUnit.h & AudioUnitProperties.hfactoryPresets should return an array of AUAudioUnitPreset(s). A host can display these and let a user select a preset though currentPreset which accepts a selected AUAudioUnitPreset.
Topic:
Media Technologies
SubTopic:
Audio
Tags:
When running on iOS 9 (currently beta 4), every time I tap a Back button in my app to pop a view controller off of a navigation controller stack, my app crashes. The crash stack is all in UIKit Code. Here is the crash message and stack trace (obtained from the bt command in lldb):* thread #1: tid = 0x81f6, 0x37b07ad6 libobjc.A.dylib`objc_msgSend + 22, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x37b07ad6 libobjc.A.dylib`objc_msgSend + 22 frame #1: 0x2a4e0902 UIKit`-[UINavigationController navigationBar:shouldPopItem:] + 634 frame #2: 0x2a4e03ca UIKit`-[UINavigationBar _popNavigationItemWithTransition:] + 122 frame #3: 0x2a5ade48 UIKit`-[UINavigationBar popNavigationItemAnimated:] + 172 frame #4: 0x2a5add70 UIKit`-[UINavigationBar _popForTouchAtPoint:] + 488 frame #5: 0x2a5ad4a8 UIKit`-[UINavigationBar _handleMouseUpAtPoint:] + 444 frame #6: 0x2a5ad2d8 UIKit`-[UINavigationBar touchesEnded:withEvent:] + 132 frame #7: 0x2a4410b6 UIKit`-[UIWindow _sendTo
When trying to change a notification tone in Settings- Sounds to a non iOS default song the Settings app crashes. It only started doing this after upgrading to ios 9 beta 4. Is anyone else experiencing this problem? (iPhone 6 Plus 128Gb)
Just guessing from the error message, but it sounds like you need to make the method public, i.e. “as available”.
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Reply to 300BaudNice user name (-:Multipeer Connectivity does not support operating in the background; it's really that simply. You may be able to get some things to work, but I recommend that you not go down that path because, when you do unsupported things, you run the risk of future changes breaking your code.The networking stack does, in general, support operating in the background. Where things start to go wrong is if your app gets suspended in the background. Technote 2277 Networking and Multitasking has the details. So, if your already have a way to prevent your app from suspended—for example, it's an audio app that's playing music—you can use other networking APIs in the background quite successfully.OTOH, if you can't avoid suspending in the background, you will have to look at APIs that let you make progress while you're suspended; that typically means using NSURLSession background session support, possibly in conjunction with UIApplication's background fetch support.Share and Enjoy — Quinn
Topic:
App & System Services
SubTopic:
Core OS
Tags:
In the settings under sound when I go to change the text tone to a different tone it always crashes back to the home screen go back in and try to change crashing again unable to change any towns except for default they want to change from default to vibrate change back to vibrate now I have no text tones it just vibrates
We have an OS X Installer package for one of our audio plug-in products. This installer is live for over a year already and has been successfully installed on thousands of machines. We have three similar installer packages of other products with only different payload. The installer packages are created with Stéphane Sudre's Packages Iceberg application and follow best practices. I can rule out fundamental errors.Over the whole timespan we've had two reported issues with this installer where it fails extracting files from the package with a very generic error, from two different users:User 1: MacPro6,1 @ 3.50 GHz (x 12), 32 GB RAM, OS X 10.10.1 (14B25)User 2: MacPro6,1 @ 3.50 GHz (x 12), 16 GB RAM, OS X 10.9.3 (13D65)Here is the error message (install.log excerpt):PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=110 An error occurred while extracting files from the package “Zynaptiq UNVEIL Plug-In.pkg”. UserInfo=0x7fa6d2694440 {NSUnderlyingError=0x7fa6d2602e40 UNIX[Invalid argument]