2010-11-02 09:29:19 +00:00
|
|
|
//
|
|
|
|
// SamplerEvent.m
|
|
|
|
// XNI
|
|
|
|
//
|
|
|
|
// Created by Matej Jan on 26.10.10.
|
|
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "XniSamplerEventArgs.h"
|
2012-10-15 15:01:36 +00:00
|
|
|
#import "XniSamplerEventArgs+Internal.h"
|
2010-11-02 09:29:19 +00:00
|
|
|
|
2012-10-15 15:01:36 +00:00
|
|
|
@interface XniSamplerEventArgs ()
|
|
|
|
|
|
|
|
@property (nonatomic, readwrite) int samplerIndex;
|
|
|
|
|
|
|
|
@end
|
2010-11-02 09:29:19 +00:00
|
|
|
|
|
|
|
@implementation XniSamplerEventArgs
|
|
|
|
|
|
|
|
- (id) initWithSamplerIndex:(int)theSamplerIndex
|
|
|
|
{
|
|
|
|
self = [super init];
|
|
|
|
if (self != nil) {
|
|
|
|
samplerIndex = theSamplerIndex;
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (id) eventArgsWithSamplerIndex:(int)theSamplerIndex {
|
|
|
|
return [[[XniSamplerEventArgs alloc] initWithSamplerIndex:theSamplerIndex] autorelease];
|
|
|
|
}
|
|
|
|
|
|
|
|
@synthesize samplerIndex;
|
|
|
|
|
|
|
|
@end
|