ios播放自定义的声音

    xiaoxiao2021-03-26  18

    NSString *filePath = [[NSBundle mainBundle] pathForResource:@"flip_1" ofType:@"wav"];               if (filePath) {         AudioServicesCreateSystemSoundID((__bridge CFURLRef _Nonnull)[NSURL fileURLWithPath:filePath], &soundID);                           AudioServicesPlaySystemSound(soundID);     }
    转载请注明原文地址: https://ju.6miu.com/read-659596.html

    最新回复(0)