Oct 24, 2018 Replies: 5 Code: Copy 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 You can change the value of 1302 above to other sound ID. List of SystemSoundIDs https://github.com/TUNER88/iOSSystemSoundsLibrary Click to expand...
Code: Copy 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 You can change the value of 1302 above to other sound ID. List of SystemSoundIDs https://github.com/TUNER88/iOSSystemSoundsLibrary
highflyer Member Licensed User Longtime User Oct 28, 2018 #2 aeric said: Code: Copy 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 You can change the value of 1302 above to other sound ID. List of SystemSoundIDs https://github.com/TUNER88/iOSSystemSoundsLibrary Click to expand... Trying to compile using the remote build server the following error is generated: Error: ** BUILD FAILED ** The following build commands failed: CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.o B4iProject/b4i_main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)
aeric said: Code: Copy 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 You can change the value of 1302 above to other sound ID. List of SystemSoundIDs https://github.com/TUNER88/iOSSystemSoundsLibrary Click to expand... Trying to compile using the remote build server the following error is generated: Error: ** BUILD FAILED ** The following build commands failed: CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.o B4iProject/b4i_main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)
highflyer Member Licensed User Longtime User Oct 29, 2018 #4 The error message was generated while trying to compile in debug mode....
Erel B4X founder Staff member Licensed User Longtime User Oct 29, 2018 #5 Add a reference to the iMedia library. You can also add this line to remove the "library not used" warning: Code: Copy #IgnoreWarnings: 32
Add a reference to the iMedia library. You can also add this line to remove the "library not used" warning: Code: Copy #IgnoreWarnings: 32
highflyer Member Licensed User Longtime User Oct 29, 2018 #6 Erel said: Add a reference to the iMedia library. You can also add this line to remove the "library not used" warning: Code: Copy #IgnoreWarnings: 32 Click to expand... That solved the problem...thank you Erel
Erel said: Add a reference to the iMedia library. You can also add this line to remove the "library not used" warning: Code: Copy #IgnoreWarnings: 32 Click to expand... That solved the problem...thank you Erel