Playing system sound without importing your own

后端 未结 10 2187
情深已故
情深已故 2020-11-27 02:26

Is it possible to play already existing system sounds without importing your own?

10条回答
  •  天命终不由人
    2020-11-27 03:03

    You can use this for all default system audio.

    Example, for the tap sound user this:

    AudioServicesPlaySystemSound(1104);
    

    For positive sounds, use this:

     AudioServicesPlaySystemSound(1054);
    

    And, negative sounds use this:

     AudioServicesPlaySystemSound(1053);
    

    The complete list you can see here.

提交回复
热议问题