Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (43 sloc) 809 Bytes
#import "ALState.h"
@implementation ALState
+ (NSString *)vendor
{
return [NSString stringWithUTF8String:alGetString(AL_VENDOR)];
}
+ (NSString *)version
{
return [NSString stringWithUTF8String:alGetString(AL_VERSION)];
}
+ (NSString *)renderer
{
return [NSString stringWithUTF8String:alGetString(AL_RENDERER)];
}
+ (NSString *)extensions
{
return [NSString stringWithUTF8String:alGetString(AL_EXTENSIONS)];
}
+ (void)setDistanceModel:(ALenum)v
{
alDistanceModel(v);
}
+ (ALenum)distanceModel
{
return alGetFloat(AL_DISTANCE_MODEL);
}
+ (void)setDopplerFactor:(float)v
{
alDopplerFactor(v);
}
+ (float)dopplerFactor
{
return alGetFloat(AL_DOPPLER_FACTOR);
}
+ (void)setSpeedOfSound:(float)v
{
alSpeedOfSound(v);
}
+ (float)speedOfSound
{
return alGetFloat(AL_SPEED_OF_SOUND);
}
@end
Something went wrong with that request. Please try again.