Comments (4)
or use a shared_ptr and let it take care of delete for you
std::vector<std::shared_ptr<ofxHapPlayer>> videos;
// ...
videos.push_back(std::make_shared<ofxHapPlayer>());
from ofxhapplayer.
Yeah it's on the list to do. For now you'll have to use new/delete (or probably std::shared_ptr to do that for you).
from ofxhapplayer.
sorry for my noob question.
could you give a short example please, on how to do the new/delete.
The below still cause Call to deleted constructor of 'ofxHapPlayer' error.
vector<ofxHapPlayer>videos;
for(int i=0; i<maxVideos; i++){
videos.push_back(ofxHapPlayer());
}
thanks.
from ofxhapplayer.
oh got it.
ofxHapPlayer* videos;
videos = new ofxHapPlayer[maxVideos];
from ofxhapplayer.
Related Issues (20)
- macOS 10.15 and OF 0.11 compile error HOT 8
- setFrame()? TODO HOT 1
- lower fps than ofxHAPAVPlayer with 10 x 4K
- Ringerbuffer clashes with ofxIO HOT 2
- INVALID OR CORRUPT FILE libavcodec.57.64.101.dylib HOT 4
- Exception from unique_lock in Demuxer.cpp HOT 5
- Sending video images to ofxCv HOT 1
- Libdispatch errors with GCC on some Linuxes HOT 4
- getTotalNumFrames() returns 0 HOT 4
- getWidth() and getHeight() return 0 HOT 2
- No PCM audio playback on OSX HOT 1
- Issue with multiple players HOT 6
- same video, asynchronous play
- Compiling on windows with qtcreator/msys2 HOT 1
- Error with @rpath/ffmpeg/lib/osx/libavutil.56.dylib
- Unable to pass ofxHapPlayer textures to a custom shader
- How to access Pixels still?
- It's possible to extract an image frame "offline" to generate thumbnails? HOT 1
- No sound on Windows...
- compatibility with ffmpeg 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxhapplayer.