openframeworks

Intermittent crash in recordingCallback() on app launch

丶灬走出姿态 提交于 2019-12-30 16:20:14
问题 My iOS app (using openFrameworks) crashes 30-40% of the time on launch on this line: if(soundInputPtr!=NULL) soundInputPtr->audioIn(tempBuffer, ioData->mBuffers[i].mDataByteSize/2, 1); which is inside the larger function in ofxiPhoneSoundStream.m static OSStatus recordingCallback(void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList *ioData) { I am doing audio setup with ofSoundStreamSetup(0, 1,

FFmpeg - Overlay one video onto another video?

北城以北 提交于 2019-12-29 01:34:28
问题 I understand that this is a very open ended question. I have done some initial reading into FFmpeg, but now require some guidance. Problem I have a video input.mov . I would like to overlay another video on top of overlay.wov . The result should be a single video ( output.mov ). Notes Done some initial reading into FFmpeg and read this question. Thanks - C. Edits Backend is Go/Ruby. Open to using a new language. The audio from the first video should be kept. Setting the interval at which the

box2d triangulation of static body

浪子不回头ぞ 提交于 2019-12-24 07:29:12
问题 I have posted on this before, but to no avail. Sorry for slightly repeating myself but I have tried to figure this out and I haven't been able to. I am probably not understanding something in box2d. I therefore wrote a very simplified example to highlight the issue. In my code I simply create a rectangle. I triangulate it and then I add it to a box2d world. If I define the object as a dynamic object (density > 0) it is reacting to the walls and objects within the scene see images here. If I

Canon EDSDK 2.11 on OSX EdsOpenSession exc_bad_access

时光毁灭记忆、已成空白 提交于 2019-12-24 07:08:10
问题 I'm trying to use the Canon EDSDK 2.11 on OSX with a EOS Xsi. I tried running the sample code, I've written my own code, and I even downloaded openFrameworks and an add-on for the Canon EDSK, ofxCanon, and ran its sample code. Every time any of the code reaches a call to EdsOpenSession I get a exc_bad_access error. Can anyone tell me what might be going on and what I might be doing wrong? 回答1: I had the same problem. It seems there is some issues with the SDK downloaded from Canon site. Here

How can I solve a conflict between openFrameworks and other audio applications?

旧城冷巷雨未停 提交于 2019-12-21 06:17:19
问题 When I try executing the audioOutputExample shipped with openFrameworks, I get RtApiAlsa::getDeviceIno: snd_pcm_open error for device (hw:0,0), Device or resource busy. RtApiAlsa::probeDeviceOpen: pcm device (hw:0,0) won't open for output. RtApi:: a stream is not open! Process returned 0 (0x0) execution time : 3.462 s Press ENTER to continue. when Rhythmbox is playing Rhythmbox has played recently (under ~5 seconds ago) Firefox has a tab with Grooveshark, either playing a tune or on pause The

How can I solve a conflict between openFrameworks and other audio applications?

☆樱花仙子☆ 提交于 2019-12-21 06:17:12
问题 When I try executing the audioOutputExample shipped with openFrameworks, I get RtApiAlsa::getDeviceIno: snd_pcm_open error for device (hw:0,0), Device or resource busy. RtApiAlsa::probeDeviceOpen: pcm device (hw:0,0) won't open for output. RtApi:: a stream is not open! Process returned 0 (0x0) execution time : 3.462 s Press ENTER to continue. when Rhythmbox is playing Rhythmbox has played recently (under ~5 seconds ago) Firefox has a tab with Grooveshark, either playing a tune or on pause The

How to build for Mac OS X 10.6 SDK in Xcode versions that don't include it

若如初见. 提交于 2019-12-21 02:33:25
问题 My Xcode only allows me to select Mac OS X 10.7 as the earliest Base SDK. Is it possible to install additional base SDKs? 回答1: I found an old version of Xcode 4.3 on one of my backup disks and dragged a copy of: /Developer/SDKs/MacOSX10.6.sdk to: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk It now sits along side the MacOSX10.7.sdk and MacOSX10.8.sdk , which were already there. They came with Xcode 4.4. I'm running Xcode Version 4.4 (4F250

openFrameworks vs Processing

坚强是说给别人听的谎言 提交于 2019-12-20 08:39:22
问题 I have been reading a lot about openFrameworks and Processing, But still can't make the distinction other than one is in C++ and the other in Java. Can someone tell me which is for what exactly? 回答1: You are correct, one is C++ and the other is Java, and those differences apply to these frameworks, so it's up to your preferences/project scope to decide which one is best for you. With Processing : You get a minimal IDE, but can easily use Eclipse or other Java IDEs. You get memory management

warning C4003: not enough actual parameters for macro 'max' - Visual Studio 2010 C++

泄露秘密 提交于 2019-12-18 13:53:07
问题 I have the following warnings while compiling an openFrameworks 007 project on Visual Studio 2010 SP1: d:\pedro\development\videoflow\openframeworks\libs\openframeworks\types\ofcolor.h(127): warning C4003: not enough actual parameters for macro 'max' d:\pedro\development\videoflow\openframeworks\libs\openframeworks\types\ofcolor.h(128): warning C4003: not enough actual parameters for macro 'max' d:\pedro\development\videoflow\openframeworks\libs\openframeworks\graphics\ofpixels.h(150):

Skewed frustum/off-axis projection for head tracking in OpenGL

半世苍凉 提交于 2019-12-18 10:47:47
问题 I am trying to do an off-axis projection in my application and trying to change the perspective of the scene as per the user's head position. Normally, given that I had to draw a box on the screen, I would draw a Box on the screen as: ofBox(350,250,0,50); //ofBox(x, y, z, size); where x, y and z used here are the screen coordinates To do an off-axis projection here, I am aware that I would have to change the perspective projection as follows: vertFov = 0.5; near = 0.5; aspRatio = 1.33;