Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tweaks.

  • Loading branch information...
commit bd5160a23f10b70c51bea0d853c658ba469718d2 1 parent 3adc7ac
@BigZaphod authored
View
4 AVFoundation/AVFoundation.xcodeproj/project.pbxproj
@@ -140,7 +140,7 @@
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0420;
+ LastUpgradeCheck = 0430;
};
buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "AVFoundation" */;
compatibilityVersion = "Xcode 3.2";
@@ -246,11 +246,13 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ CODE_SIGN_IDENTITY = "3rd Party Mac Developer Application";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.6;
+ PROVISIONING_PROFILE = "";
SDKROOT = macosx;
};
name = Release;
View
25 AVFoundation/Classes/AVAudioPlayer.m
@@ -31,7 +31,7 @@
#import <AppKit/NSSound.h>
@implementation AVAudioPlayer
-@synthesize delegate=_delegate, url=_url, data=_data, numberOfLoops=_numberOfLoops;
+@synthesize delegate=_delegate, url=_url, data=_data;
- (id)init
{
@@ -106,20 +106,16 @@ - (void)stop
- (BOOL)isPlaying
{
- BOOL is = NO;
@synchronized (self) {
- is = [_player isPlaying];
+ return [_player isPlaying];
}
- return is;
}
- (float)volume
{
- float v = 0;
@synchronized (self) {
- v = [_player volume];
+ return [_player volume];
}
- return v;
}
- (void)setVolume:(float)v
@@ -129,6 +125,13 @@ - (void)setVolume:(float)v
}
}
+- (NSInteger)numberOfLoops
+{
+ @synchronized (self) {
+ return _numberOfLoops;
+ }
+}
+
- (void)setNumberOfLoops:(NSInteger)loops
{
@synchronized (self) {
@@ -139,11 +142,9 @@ - (void)setNumberOfLoops:(NSInteger)loops
- (NSTimeInterval)duration
{
- NSTimeInterval d = 0;
@synchronized (self) {
- d = [_player duration];
+ return [_player duration];
}
- return d;
}
- (void)setCurrentTime:(NSTimeInterval)newTime
@@ -155,11 +156,9 @@ - (void)setCurrentTime:(NSTimeInterval)newTime
- (NSTimeInterval)currentTime
{
- NSTimeInterval t = 0;
@synchronized (self) {
- t = [_player currentTime];
+ return [_player currentTime];
}
- return t;
}
- (void)sound:(NSSound *)sound didFinishPlaying:(BOOL)finishedPlaying
Please sign in to comment.
Something went wrong with that request. Please try again.