mirror of
https://github.com/ksherlock/ample.git
synced 2024-05-28 21:41:29 +00:00
-nosample support to eliminate disk sound effects.
This commit is contained in:
parent
b2907eda08
commit
6177001a4c
|
@ -193,6 +193,17 @@ DQ
|
||||||
<binding destination="-2" name="value" keyPath="self.mameMouse" id="vWu-od-2d6"/>
|
<binding destination="-2" name="value" keyPath="self.mameMouse" id="vWu-od-2d6"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
|
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="XNa-8k-X89">
|
||||||
|
<rect key="frame" x="143" y="29" width="137" height="18"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
|
<buttonCell key="cell" type="check" title="Disk Sound Effects" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="MBT-Uv-Lev">
|
||||||
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
</buttonCell>
|
||||||
|
<connections>
|
||||||
|
<binding destination="-2" name="value" keyPath="self.mameSamples" id="77G-8C-HgT"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
</subviews>
|
</subviews>
|
||||||
</view>
|
</view>
|
||||||
</tabViewItem>
|
</tabViewItem>
|
||||||
|
|
|
@ -37,6 +37,7 @@ static NSString *kContextMachine = @"kContextMachine";
|
||||||
@property BOOL mameDebug;
|
@property BOOL mameDebug;
|
||||||
@property BOOL mameSquarePixels;
|
@property BOOL mameSquarePixels;
|
||||||
@property BOOL mameMouse;
|
@property BOOL mameMouse;
|
||||||
|
@property BOOL mameSamples;
|
||||||
|
|
||||||
@property BOOL mameAVI;
|
@property BOOL mameAVI;
|
||||||
@property BOOL mameWAV;
|
@property BOOL mameWAV;
|
||||||
|
@ -68,6 +69,7 @@ static NSString *kContextMachine = @"kContextMachine";
|
||||||
[self setMameSpeed: 1];
|
[self setMameSpeed: 1];
|
||||||
[self setMameBGFX: YES];
|
[self setMameBGFX: YES];
|
||||||
[self setMameMouse: NO];
|
[self setMameMouse: NO];
|
||||||
|
[self setMameSamples: YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)windowDidLoad {
|
- (void)windowDidLoad {
|
||||||
|
@ -83,7 +85,7 @@ static NSString *kContextMachine = @"kContextMachine";
|
||||||
|
|
||||||
NSArray *keys = @[
|
NSArray *keys = @[
|
||||||
@"mameMachine", @"mameSquarePixels", @"mameWindowMode",
|
@"mameMachine", @"mameSquarePixels", @"mameWindowMode",
|
||||||
@"mameMouse",
|
@"mameMouse", @"mameSamples",
|
||||||
@"mameDebug",
|
@"mameDebug",
|
||||||
@"mameSpeed",
|
@"mameSpeed",
|
||||||
@"mameAVI", @"mameAVIPath",
|
@"mameAVI", @"mameAVIPath",
|
||||||
|
@ -281,6 +283,9 @@ static NSString *ShellQuote(NSString *s) {
|
||||||
|
|
||||||
if (_mameMouse)
|
if (_mameMouse)
|
||||||
[argv addObject: @"-mouse"]; // capture the mouse cursor when over the window.
|
[argv addObject: @"-mouse"]; // capture the mouse cursor when over the window.
|
||||||
|
|
||||||
|
if (!_mameSamples)
|
||||||
|
[argv addObject: @"-nosamples"];
|
||||||
|
|
||||||
if (_mameDebug) [argv addObject: @"-debug"];
|
if (_mameDebug) [argv addObject: @"-debug"];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user