Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 55 lines (43 sloc) 0.809 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
#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.