-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
337 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
FaderBar.xcodeproj/xcuserdata/iain.xcuserdatad/xcschemes/FaderBar.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
-62.2 KB
(35%)
FaderBar/Assets.xcassets/AppIcon.appiconset/ItunesArtwork.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-201 KB
(34%)
FaderBar/Assets.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// | ||
// ISSoundAdditions.m (ver 1.2 - 2012.10.27) | ||
// | ||
// Created by Massimo Moiso (2012-09) InerziaSoft | ||
// based on an idea of Antonio Nunes, SintraWorks | ||
// | ||
// Permission is granted free of charge to use this code without restriction | ||
// and without limitation, with the only condition that the copyright | ||
// notice and this permission shall be included in all copies. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
|
||
/* | ||
GOAL | ||
This is a category of NSSound build using CoreAudio to get and set the volume of the | ||
system sound and some other utility. | ||
It was implemented using the Apple documentation and various unattributed code fragments | ||
found on the net. For this reason, its use is free for all. | ||
USE | ||
To maintain the Cocoa conventions, a property-like syntax was used; the following | ||
methods ("properties") are available: | ||
(float)systemVolume - return the volume of the default sound device | ||
setSystemVolume(float) - set the volume of the default sound device | ||
(AudioDeviceID)defaultOutputDevice - return the default output device | ||
applyMute(boolean) - enable or disable muting, if supported | ||
REQUIREMENTS | ||
At least MacOS X 10.6 | ||
Core Audio Framework | ||
*/ | ||
|
||
#import <Cocoa/Cocoa.h> | ||
#import <CoreAudio/CoreAudio.h> | ||
#import <AudioToolbox/AudioServices.h> | ||
|
||
@interface NSSound (ISSoundAdditions) | ||
|
||
+ (AudioDeviceID)defaultOutputDevice; | ||
|
||
+ (float)systemVolume; | ||
+ (void)setSystemVolume:(float)inVolume; | ||
|
||
+ (void)increaseSystemVolumeBy:(float)amount; | ||
+ (void)decreaseSystemVolumeBy:(float)amount; | ||
|
||
+ (void)applyMute:(Boolean)m; | ||
|
||
#define THRESHOLD 0.005 //if the volume should be set under this value, the device will be muted | ||
|
||
@end |
Oops, something went wrong.