cocoaTouch/VoicesViewController.m
changeset 3354 cb5d13ff4aae
parent 3353 a767dd3786b5
child 3361 cfc6cd502f85
equal deleted inserted replaced
3353:a767dd3786b5 3354:cb5d13ff4aae
    24 #pragma mark View lifecycle
    24 #pragma mark View lifecycle
    25 - (void)viewDidLoad {
    25 - (void)viewDidLoad {
    26     [super viewDidLoad];
    26     [super viewDidLoad];
    27     srandom(time(NULL));
    27     srandom(time(NULL));
    28 
    28 
    29     openal_init("Hedgewars", 0, 3);
    29     openal_init("Hedgewars", 1, 3);
    30     voiceBeingPlayed = -1;
    30     voiceBeingPlayed = -1;
    31 
    31 
    32     // load all the voices names and store them into voiceArray
    32     // load all the voices names and store them into voiceArray
    33     NSArray *array = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:VOICES_DIRECTORY() error:NULL];
    33     NSArray *array = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:VOICES_DIRECTORY() error:NULL];
    34     self.voiceArray = array;
    34     self.voiceArray = array;