![]() I filed an Apple Bug Report enhancement request for both iPhone Simulator volume control, request 13428429, and per application volume control in Mac OS X, request 13428420. Idea Threeįind a command-line option to pass to the Springboard or iPhone Simulator that will mute sound, or re-enable the volume control within the simulator, and of course be able to still launch the debugger. It might be fun to explore this route, but to make it into a weaponized tool would require a lot of trouble since you need to compile against private headers. In the book iPhone Open Application Development Chapter 6, Example "What's My Volume' gives sample code for manipulating system-wide sound through the AVSystemController. However, within an app, only private APIs have the power to mute or reduce volume for the device. I was thinking maybe you could make a debug option where when in the app and on the simulator sound would be muted. Contacted support and they reported that iPhone Simulator does some things that prevent them from hijacking the audio. This didn't work and crashes the simulator. Tried using Audio Hijack Pro by Rogue Amoeba to hijack the audio stream and mute it. First Attempt - Use a 3rd party app to mute it You can download VideoPlayer from GitHub for your own experiments. I'm working on a solution to this problem and as a first step created a demonstration video player app. Experimental setup - A sample video player So in general, you can attempt to trick the simulator to output to a dead end output. If you then switch to a different, working, output the simulator will remain 'muted' until you restart the simulator. ![]() Using Soundflower plugin and sending the audio to nowhere I started the iPhone Simulator. ![]() The iPhone Simulator selects the currently selected output at launch. Partial Success - There are no good options
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |