Partial success - no good options
IPhone Simulator selects the currently selected output at startup. Using the Soundflower plugin and sending audio to nowhere, I started using iPhone Simulator. If you then switch to another, working, output, the simulator will remain “disabled” until you restart the simulator. Thus, in general, you can try to trick the simulator to bring it to a dead end.
Experimental setup - sample video player
I am working on a solution to this problem, and as a first step a demo video player was created. You can download VideoPlayer from GitHub for your own experiments.
First try. Use a third-party application to disable it.
Tried using Rogue Amoeba's Audio Hijack Pro to grab the audio stream and mute it. This did not work and the simulator worked. Contact support, and they reported that the iPhone Simulator does some things that prevent them from capturing audio. I also reviewed Soundflower and Jack .
The second attempt is to disable the application
I thought maybe you can make a debugging option when the sound is turned off in the application and on the simulator. However, in the application only private APIs have the ability to disable or reduce the volume for the device. In the iPhone Open Application Development book, Chapter 6, “What is my volume” example, provides sample code for managing system-wide sound through AVSystemController. be interesting for exploring this route, but turning it into a weapon tool will require a lot of trouble since you need to compile it with closed headers.
Idea three
Find the command line parameter to go to the Springboard or iPhone simulator, which will turn off the sound or turn on the volume control in the simulator again and, of course, can start the debugger.
Request for improvement
I filed an Apple bug report to improve iPhone Simulator volume control, request 13428429 and to control application volume on Mac OS X, request 13428420. If you need these features, write your own bug.
Cameron Lowell Palmer Mar 10 '13 at 18:03 2013-03-10 18:03
source share