project_files/HedgewarsMobile/Classes/VoicesViewController.m
changeset 3532 04e2fea3e83a
parent 3522 156c04c6a3d8
child 3546 ccf4854df294
equal deleted inserted replaced
3527:c4e0ef164162 3532:04e2fea3e83a
    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(20);
    29     openal_init();
    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     // it's here and not in viewWillAppear because user cannot add/remove them
    33     // it's here and not in viewWillAppear because user cannot add/remove them
    34     NSArray *array = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:VOICES_DIRECTORY() error:NULL];
    34     NSArray *array = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:VOICES_DIRECTORY() error:NULL];