iOS Question Play Beep Sound - Revisited

aminoacid

Active Member
Licensed User
Longtime User
The following very useful code was published in another post. Is it possible to pass the SystemSoundID (1302 in this case) to the Sub as a parameter?

B4X:
Sub PlayBeep
    Dim NativeMe As NativeObject = Me
    NativeMe.RunMethod("beep", Null)
End Sub

#If ObjC
#import <AVFoundation/AVAudioPlayer.h>
- (void) beep {
  AudioServicesPlaySystemSound(1302);
}
#End If
 

Semen Matusovskiy

Well-Known Member
Licensed User
 
Upvote 0
Top