I used below code to play sound in Cocos2d-Swift, its crashed.
OALSimpleAudio.sharedInstanceWithSources(32).playEffect("buttonUp_1.caf")
How to resolve crash in swift code(not ObjC) ?
Or
Is there any other way to play sound in cocos2d-swift using SimpleAudio engine ?
Crash LOG:
OAL Error: -[OALSimpleAudio initWithSources:]: : Could not create OpenAL device
fatal error: unexpectedly found nil while unwrapping an Optional value
For me this worked:
OALSimpleAudio.sharedInstance().playEffect("buttonUp_1.caf")
Related
I wanted to work on Intel PCM. I follwed the below link:
https://software.intel.com/en-us/articles/intel-performance-counter-monitor
I downloaded the code, i started to study example pcm.cpp. But Im not getting any proper understanding. Documentation is not that much clear.
http://intel-pcm-api-documentation.github.io/classPCM.html
I tried to run , pcm.x ,it gave basic information then showed some error like:
"Trying to use Linux perf events...
Linux Perf: Error on programming generic event #0 error: Invalid argument
Access to Intel(r) Performance Counter Monitor has denied (Unknown error)."
Unknown error! I cant figure out why its not accessible. I used with sudo also(root privileges).
Any suggestions how I can start working with it? Where to start?
Found a workaround here by Roman Dementiev that worked for me:
As a workaround you can disable perf usage in the PCM Makefile by removing "-DPCM_USE_PERF".
When running an application in Qt5 made using the QWebView, I accessed a page with a video player in HTML5, but the video does not play and qt/directshow shows the following error:
DirectShowPlayerService::doRender: Unresolved error code 80040218
DirectShowPlayerService::doRender: Unresolved error code 80040218
Details:
Qt5.1.1 MingW4.8 32bit
Windows 7 64bit
I suspect that is why my Windows is 64bit, but the *QT/MingW** runs on 32bit and maybe miss some DLL/LIB.
How can I resolve this?
Thanks.
The error code is rather generic: 0x80040218 VFW_E_CANNOT_RENDER "No combination of filters could be found to render the stream." and the typical cause is that the application cannot decode media feed because it lacks decoding components, such as codec for this video feed is not installed/available.
install K-Lite_Codec_Pack_1540_Basic in your machine, this error not related to pyqt5 and any other
You may check out 'LAV Filters'. It solved my rendering problem: 'DirectShowPlayerService::doRender: Unresolved error code 80040266'.
Download installer: http://forum.doom9.org/showthread.php?t=156191 And the source code: https://github.com/Nevcairiel/LAVFilters
If you are a developer, you can download and use ffmpeg to decode and encode your file to avi(windows) or mov(mac).
I am trying to build LLVM on windows, and everytime I do so I get to a certain point and then recieve an error that says "not.exe has stopped working" It pops up on the desktop about 15 times.
I am not sure what is going on, but when I check the error in Visual Studio I receive this:
Error 4 error : Couldn't execute program 'C:/Users/Cyborg/Documents/Developer'The process cannot access the file because it is being used by another process. C:\Users\Joe\Documents\Dev\llvm\test\CUSTOMBUILD check-llvm
I receive this error 5-7 times depending on how fast I click the error that pops up on the desktop. So clearly this issue is happening because of that.
The fault module is: MSVCR100.dll
Does anyone know why this is happening?
I don't know why you're getting the error since I don't build or use LLVM on Windows. Since no one else has chimed in, I'll try to give a hint or two.
"not.exe" (or "not" under Linux) is a little LLVM helper program used when running the lit based regressions tests. It is used to execute a program and return a good exit status if the program fails and a bad exit status if the program doesn't fail.
I'm guessing that "CUSTOMBUILD check-llvm" (what ever that is) is attempting to run the regression tests and your getting your mysterious error as a result whenevr "not" is used.
I hope that helps.
I'm creating my first unit test (google test) in C++ using Netbeans. I have followed the official tutorial but I keep running into an error when hit the test button.
The error:
fatal error - error while loading shared libraries:
/cygdrive/E/softwares_n_studies/Netbeans/installed/NetBeans_7.3.1/ide/bin/nativeexecution/Windows-x86/unbuffer.dll:
cannot open shared object file: Exec format error
What does this error mean and how can I fix it?
Go to the properties of you project->run->Console Type and change to External Terminal.
When I open GATE, I meet error "Error: Could not create the Java Virtual Machine. Error: A fatal execption has occurred. Program will exit". How to resovle??? Help me!
At first step I suggest to delete your App Data of gate .
Try rebooting the system and then run the GATE application, it will work fine.