Skip to content

Commit

Permalink
Bug fixes. Upgraded to 1.5.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamLCobb committed May 5, 2016
1 parent 9fa9120 commit 68852e4
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 15 deletions.
4 changes: 2 additions & 2 deletions iNDS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2205,7 +2205,7 @@
CODE_SIGN_ENTITLEMENTS = "";
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CURRENT_PROJECT_VERSION = 1.5.1.1;
CURRENT_PROJECT_VERSION = 1.5.1.2;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)",
Expand Down Expand Up @@ -2259,7 +2259,7 @@
CODE_SIGN_ENTITLEMENTS = "";
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CURRENT_PROJECT_VERSION = 1.5.1.1;
CURRENT_PROJECT_VERSION = 1.5.1.2;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)",
Expand Down
4 changes: 2 additions & 2 deletions iNDS/Base.lproj/MainStoryboard.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" initialViewController="rdm-Mv-s2q">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" initialViewController="rdm-Mv-s2q">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<capability name="Navigation items with more than one left or right bar item" minToolsVersion="7.0"/>
</dependencies>
<scenes>
Expand Down
2 changes: 1 addition & 1 deletion iNDS/core/Sound/iNDSMicrophone.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ - (id)init
audioDescription.mFramesPerPacket = 1;
audioDescription.mBytesPerFrame = sizeof(UInt8);
audioDescription.mBitsPerChannel = 8 * sizeof(UInt8);
audioDescription.mSampleRate = 48000.0;
audioDescription.mSampleRate = 16000.0;

microphone = [EZMicrophone microphoneWithDelegate:self withAudioStreamBasicDescription:audioDescription];

Expand Down
2 changes: 1 addition & 1 deletion iNDS/core/mic.mm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
bool micEnabled;
volatile float micSampleRate = 0.0;

#define SampleRateModifer 3
#define SampleRateModifer 1

void Mic_DeInit(){
printf("Mic_DeInit\n");
Expand Down
23 changes: 15 additions & 8 deletions iNDS/iNDSEmulatorViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ - (void)startEmulatorLoop
[self.view endEditing:YES];
[self updateDisplay]; //This has to be called once before we touch or move any glk views
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
//dispatch_async(dispatch_get_main_queue(), ^{
NSInteger filter = [[NSUserDefaults standardUserDefaults] integerForKey:@"videoFilter"];
displaySemaphore = dispatch_semaphore_create(1);
CGFloat framesToRender = 0;
lastAutosave = CACurrentMediaTime();
Expand All @@ -634,16 +634,22 @@ - (void)startEmulatorLoop
[self saveStateWithName:[NSString stringWithFormat:@"Auto Save"]];
}
lastAutosave = CACurrentMediaTime();
filter = [[NSUserDefaults standardUserDefaults] integerForKey:@"videoFilter"];
}

// Core will always be one frame ahead
dispatch_semaphore_wait(displaySemaphore, DISPATCH_TIME_FOREVER);
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
if (filter == 0) {
EMU_copyMasterBuffer();
//This will automatically throttle fps to 60
[self updateDisplay];
dispatch_semaphore_signal(displaySemaphore);
});
} else {
// Run the filter on a seperate thread to increase performance
// Core will always be one frame ahead
dispatch_semaphore_wait(displaySemaphore, DISPATCH_TIME_FOREVER);
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
EMU_copyMasterBuffer();
//This will automatically throttle fps to 60
[self updateDisplay];
dispatch_semaphore_signal(displaySemaphore);
});
}
}
[[iNDSMFIControllerSupport instance] stopMonitoringGamePad];
[emuLoopLock unlock];
Expand Down Expand Up @@ -725,6 +731,7 @@ - (void) setSpeed:(CGFloat)speed

- (void)setLidClosed:(BOOL)closed
{
return; //Disabled until freezing is fixed
if (closed) {
EMU_buttonDown((BUTTON_ID)13);
} else {
Expand Down
2 changes: 1 addition & 1 deletion iNDS/support/iNDS-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.5.1.1</string>
<string>1.5.1.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down

1 comment on commit 68852e4

@DarknesGaming
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it SampleRateModifer or SampleRateModifier? I'm not sure if you did that on purpose or it was an accidental typo that you didn't notice.

Please sign in to comment.