This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ofxNDISoundObject.cpp | |
// | |
// Created by Roy Macdonald on 9/14/19. | |
// | |
// | |
#include "ofxNDISoundObject.h" | |
#include "ofLog.h" | |
//-------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ofxNDISoundObject.cpp | |
// | |
// Created by Roy Macdonald on 9/14/19. | |
// | |
// | |
#include "ofxNDISoundObject.h" | |
#include "ofLog.h" | |
//-------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool ofxNDIReceiverSoundObject::findSourceByUrl(ofxNDIReceiverSettings& settings, const std::vector<std::string>& extra_ips){ | |
if(settings.sourceUrl != "") { | |
return findSource([&settings](const ofxNDI::Source &s) { | |
std::vector<std::string> split_url = ofSplitString(s.p_url_address, ":"); | |
// return settings.sourceUrl == s.p_url_address; | |
return settings.sourceUrl == split_url[0]; | |
},settings, extra_ips, "at URL: " + settings.sourceUrl ); | |
} | |
ofLogWarning("ofxNDIReceiverSoundObject::findSourceByUrl") << "can not find a source by URL if URL is empty"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// threaded_fileHandler.h | |
// matrixDesk | |
// | |
// Created by Stephan Schulz on 2019-06-12. | |
// | |
#ifndef threaded_fileHandler_h | |
#define threaded_fileHandler_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ofMain.h" | |
#include "ofApp.h" | |
//======================================================================== | |
int main( ){ | |
ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context | |
// this kicks off the running of my app | |
// can be OF_WINDOW or OF_FULLSCREEN | |
// pass in width and height too: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi:~ $ curl https://get.pimoroni.com/inky | bash | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 38491 100 38491 0 0 28534 0 0:00:01 0:00:01 --:--:-- 28554 | |
This script will install everything needed to use | |
Inky pHAT & wHAT | |
Always be careful when running scripts and commands copied | |
from the internet. Ensure they are from a trusted source. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//-------teensy hardware restart | |
//https://forum.pjrc.com/threads/44857-How-to-Reset-Restart-Teensy-3-5-using-sotware?p=145990&viewfull=1#post145990 | |
//#define RESTART_ADDR 0xE000ED0C | |
//#define READ_RESTART() (*(volatile uint32_t *)RESTART_ADDR) | |
//#define WRITE_RESTART(val) ((*(volatile uint32_t *)RESTART_ADDR) = (val)) | |
#ifdef USE_FINGER_TOUCH | |
unsigned long touchPrint_timer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ofApp.h" | |
int SIDE_WIDTH; | |
int SIDE_HEIGHT; | |
static int64_t prev_frame = 0; | |
static int64_t cur_frame = 0; | |
static uint8_t offset = 1; | |
//-------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi:~/openFrameworks/addons/ofxPython/example_simpleScript $ make | |
HOST_OS=Linux | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0 libmpg123 | |
Compiling OF library for Release | |
make[1]: Entering directory '/home/pi/openFrameworks/libs/openFrameworksCompiled/project' | |
HOST_OS=Linux | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0 libmpg123 | |
HOST_OS=Linux | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0 libmpg123 | |
HOST_OS=Linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ofApp.h" | |
int main() { | |
ofSetupOpenGL(320, 240, OF_WINDOW); | |
ofRunApp(new ofApp()); | |
} |
NewerOlder