Integrate music and other audio content into your apps.

Posts under Audio tag

98 Posts
Sort by:
Post not yet marked as solved
1 Answers
86 Views
Hi there I'm writing some audio plug-ins that use biquad filtering of incoming audio. The audio is supplied to me as vectors of doubles. I am using the Accelerate callbacks of vDSP_biquad_CreateSetupD, vDSP_biquad_DestroySetupD and vDSP_biquadD on a vDSP_biquad_SetupD struct. When the user changes the filter parameters, I want to update the coefficients of the biquad filter. I assumed that I would be able to use the new vDSP_biquad_SetCoefficientsDouble callback, but that requires a vDSP_biquad_Setup rater than a vDSP_biquad_SetupD — i.e. a single-precision vector, rather than the double-precision vector that I would have thought it would require. Is that an error? How do I update the coefficients of a double-precision object? Thanks in advance, Michael
Posted
by mjsnorris.
Last updated
.
Post not yet marked as solved
1 Answers
224 Views
Hi everyone, I think I solved my problem of cracking and popping sounds. I have a MacBook Pro 16 M1 - 16 Go RAM (sorry in advance for my english : I'm French :-D 1— Everything was working fine with the sound when the MBpro M1 was running the factory version of MacOS. As soon as I made an update to Monterey, BOOM ! The cracking and popping sounds started. I think I try everything described on the internet and nothing solved it really. 2— I try a last thing : starting the Mac without any extensions. The problems with the sound were suddenly gone. So I figured out the problem could be an app running on my Mac. 3— So I started my Mac on normal mode to desactivate manually a few things running in the background. I found that the app "Magnet" (an non-Apple app I used to organize my windows) could be a troublemaker because the sound problem was not as intense as before suddenly. 4— On that basis, I did an experiment with each software I have : I put music from YouTube in Safari, launch an app and I work with the app for a bit. My conclusion : with softwares that are coded for the Apple Chips (noted "Universal" or "Apple" in the Activity Monitor), there are no sound problem at all. If I open an app coded for Intel (eg : Guitar Pro), the crack/popping sound problem starts at the launch of the app and keep going worst and worst. I can reproduce the same thing with every app that are code for "Intel". So my guess is : the problem appears when an Intel app is going through Rosetta (which is the piece of MacOS that helps Intel app to work on Apple Chip Macs) 5— About the Magnet app : the app is noted as "Universal". My guess is part of the app is largely based on the Intel code (don't laugh people, I'm not really an expert as you guys :-). So it's perhaps going through Rosetta to work on my M1 Mac. So the sound problem never stops when Magnet is opened (Magnet is an app that work permanently in the background). Everything seems OK since a few days. I will give an update if something new. I hope it helps. Best from Paris
Posted
by Cocochat.
Last updated
.
Post marked as solved
2 Answers
154 Views
I am making a media player for Apple iOS and wanted it to be able to pull my music library using an API. The closest thing I found to this is this: https://developer.apple.com/musickit/ However, I don't know if it will allow users to play their music purchased by apple. Does anyone know how to do this so the user logs into their apple account through my app and then has complete access to their movies, tv shows, and music? Any answers are really appreciated I did my best to find the answer to this and know its annoying to ask these questions when google or apple has it documented somewhere.
Posted
by Xylapple.
Last updated
.
Post not yet marked as solved
8 Answers
3.3k Views
An error is reported when playing h5 audio or video elements in wkwebview: Error acquiring assertion: Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)", NSLocalizedFailureReason=Required client entitlement is missing} Then the performance of the webview will become very poor. There is an audio element and a button button in my HTML file. Click the button to play audio. body button onclick="handleClick()"PLAY/button audio id="audio" src="https://ac-dev.oss-cn-hangzhou.aliyuncs.com/test-2022-music.mp3"/audio script function handleClick() { document.getElementById("audio").play(); } /script /body Create a wkwebview to load the html file in my demo APP. class ViewController: UIViewController , WKUIDelegate{ var webView: WKWebView! override func loadView() { let config = WKWebViewConfiguration() config.preferences.javaScriptEnabled = true config.allowsInlineMediaPlayback = true webView = WKWebView(frame: .zero, configuration: config) //.zero webView.uiDelegate = self view = webView } override func viewDidLoad() { super.viewDidLoad() let myURL = URL(string: "https://ac-dev.oss-cn-hangzhou.aliyuncs.com/test-2022-py.html") let myRequest = URLRequest(url: myURL!) webView.load(myRequest) } } Click the button in the HTML to play the audio, and you can see the error report on the xcode. iPadN[2133:855729] [assertion] Error acquiring assertion: Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)", NSLocalizedFailureReason=Required client entitlement is missing} To sum up, this error will appear when playing audio or video in HTML. Then the app performance will drop a lot, and the interactive response will be very slow.
Posted
by pengyong.
Last updated
.
Post not yet marked as solved
10 Answers
4.1k Views
I am experiencing an issue where my Mac's speakers will crackle and pop when running an app on the Simulator or even when previewing SwiftUI with Live Preview. I am using a 16" MacBook Pro (i9) and I'm running Xcode 12.2 on Big Sur (11.0.1). Killing coreaudiod temporarily fixes the problem however this is not much of a solution. Is anyone else having this problem?
Posted
by joltguy.
Last updated
.
Post not yet marked as solved
0 Answers
154 Views
I am going to be using AVAudioPlayer to play sound effects and looping music in a game. I haven’t been able to find any recent discussion of what format to use (given I almost certainly need to compress it). https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/MultimediaPG/UsingAudio/UsingAudio.html#//apple_ref/doc/uid/TP40009767-CH2-SW28 is deprecated (and talks about “AAC” but afconvert -hf shows at least 7 different formats that can be saved in a CAF). Has that guide been updated? Does hardware vs software playback still matter in iOS 9+? I’m not really worried about performance in terms of impacting frame rate.
Posted
by ddunham.
Last updated
.
Post marked as solved
2 Answers
954 Views
I have a working AUv3 AUAudioUnit app extension but I had to work around a strange issue: I found that the internalRenderBlock value is fetched and invoked before allocateRenderResources() is called. I have not found any documentation stating that this would be the case, and intuitively it does not make any sense. Is there something I am doing in my code that would be causing this to be the case? Should I *force* a call to allocateRenderResources() if it has not been called before internalRenderBlock is fetched? Thanks! Brad
Posted
by bradhowes.
Last updated
.
Post not yet marked as solved
1 Answers
151 Views
In the controlpanel is 3d audio not available with logic but if change to a youtube video on safari its available. Where is the bug? MacOs 12.4 Beta (21F5071b) Logic 10.7.4 MacBook Pro (16", 2021) Apple M1 Max 64GB
Posted Last updated
.
Post not yet marked as solved
1 Answers
182 Views
I'm working on a music app where I need to set supported formats in a request to the server (to check if transcoding will be required). The best resource I can find is on the old documentation page for OS X 10.5 - https://developer.apple.com/library/archive/documentation/MusicAudio/Conceptual/CoreAudioOverview/SupportedAudioFormatsMacOSX/SupportedAudioFormatsMacOSX.html Is there an updated resource for iOS?
Posted Last updated
.
Post not yet marked as solved
2 Answers
291 Views
Hi, I'm trying to develop a simple app, that presents some dashboard on the screen, and in the background I'm using some music app (Apple Music or Spotify) - while I see my dashboard. While listening to music, I’ve noticed that after a few minutes, (1-2), the music app takes priority, displaying the album art, title and artist. how do I prevent it? thanks a lot in advance!
Posted Last updated
.
Post not yet marked as solved
0 Answers
131 Views
So I am trying to access my Heavy Rotation content using this command from the Apple Music API website: wget https://api.music.apple.com/v1/me/history/heavy-rotation I made sure to change "me" to my username on Apple Music and I ran this command from my Terminal. It is connecting to the Apple Music API but it is saying that the request is unauthorized. I was surprised by this because I have already granted access on my device after requestAuthorization ran once (after authorization it does not ask again). So why is it saying that the request is unauthorized? Do I need to use my developer token somewhere? Thanks. (base) MacBook-Pro-210:soundtrack nalinkrishnan$ wget https://api.music.apple.com/v1/theonlynalin/history/heavy-rotation --2022-05-02 12:04:18--  https://api.music.apple.com/v1/theonlynalin/history/heavy-rotation Resolving api.music.apple.com (api.music.apple.com)... 2001:559:19:608b::2a1, 2001:559:19:6099::2a1, 2001:559:19:6080::2a1, ... Connecting to api.music.apple.com (api.music.apple.com)|2001:559:19:608b::2a1|:443... connected. HTTP request sent, awaiting response... 401 Unauthorized Username/Password Authentication Failed.
Posted
by nalinkn.
Last updated
.
Post marked as solved
1 Answers
1.4k Views
Hi, I would like to be able to create a playlist from my app or add songs to an existing selected playlist in the user music library, How can I do that ? Is there an API in MusicKit to do that? The Shazam app is doing something similar with the My Shazam Songs playlist... Thanks
Posted
by aleroot.
Last updated
.
Post not yet marked as solved
0 Answers
158 Views
I have an application that is running well in other Android versions, like 11 and 10, but in Android 12 the song is not playing. Had some errors on it related to using too much memory, but was able to change things and make it work, but it continued to not play songs in Android 12. Is there any need to make it work in Android 12?
Posted Last updated
.
Post not yet marked as solved
1 Answers
216 Views
Hi, I need to develop a cross-plateform driver extension (similar to a Windows Audio Processing Object (APO)) for an Audio Device and I'm struggling with associating the driver to a USB Audio Device. I'm using the SimpleAudioDriver example and override the device_uid with the Product ID and the manufacturer_uid with the Vendor ID. As I understand it with this documentation : https://developer.apple.com/news/?id=zk5xdwbn it should associate my driver with the device but it creates a new device. If you have any hints, please get back to me. Thanks.
Posted
by kinaar.
Last updated
.
Post not yet marked as solved
0 Answers
156 Views
Simple AVPlayer sample in swift for iOS 15.4.1 Interstitial specified via EXT-X-DATERANGE tag. Interstitial displayed as expected but no notifications generated for either AVPlayerInterstitialEventMonitor.currentEventDidChangeNotification or .eventsDidChangeNotification? Tested on both a simulator and a device?? Suggestions?
Posted Last updated
.
Post not yet marked as solved
1 Answers
883 Views
I am working on a simple voip application for iOS and need to use opus codec. As far as I know opus codec is only available in C. There seems to be no way in Xcode to compile opus codec for iOS platform. How can I use opus codec in my iOS project? Do I need to compile everything from the source using cmake? And if so, does Xcode have cmake support?
Posted
by nmd007.
Last updated
.
Post not yet marked as solved
1 Answers
343 Views
Hi, I am facing a really strange issue.I have a wordpress website in which I have used html 5 audio tag .Whenever I play audio it delays it takes 2-3 sec to start on Safari. On other browsers it is working fine.I have done lot's of research and tried many things JS scripts but nothing worked.Can you please check and let me know any solution for this. page link : dev.one-button.de/create-your-song-with-name/ Thanks
Posted
by sumit12.
Last updated
.