noobs 0.0.143 → 0.0.145
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/noobs.node +0 -0
- package/package.json +1 -1
- package/src/main.cpp +3 -0
- package/src/obs_interface.cpp +4 -1
- package/src/obs_interface.h +2 -1
package/dist/noobs.node
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/main.cpp
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
ObsInterface* obs = nullptr;
|
|
8
8
|
|
|
9
|
+
extern "C" __declspec(dllexport) DWORD NvOptimusEnablement = 1;
|
|
10
|
+
extern "C" __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
|
|
11
|
+
|
|
9
12
|
Napi::Value ObsInit(const Napi::CallbackInfo& info) {
|
|
10
13
|
bool valid = info.Length() == 3 &&
|
|
11
14
|
info[0].IsString() && // Dist path
|
package/src/obs_interface.cpp
CHANGED
|
@@ -695,7 +695,10 @@ void draw_callback(void* data, uint32_t cx, uint32_t cy) {
|
|
|
695
695
|
gs_set_viewport(previewX, previewY, previewCX, previewCY);
|
|
696
696
|
|
|
697
697
|
// Renders the scene now the graphics context is setup.
|
|
698
|
-
obs_render_main_texture();
|
|
698
|
+
// obs_render_main_texture();
|
|
699
|
+
obs_source_t *source = obs_scene_get_source(obsInterface->scene);
|
|
700
|
+
if (source)
|
|
701
|
+
obs_source_video_render(source);
|
|
699
702
|
|
|
700
703
|
// Draw boxes around sources, if enabled.
|
|
701
704
|
if (obsInterface->getDrawSourceOutlineEnabled()) {
|
package/src/obs_interface.h
CHANGED
|
@@ -91,9 +91,10 @@ class ObsInterface {
|
|
|
91
91
|
void sourceCallback(std::string name); // Send callback for source change.
|
|
92
92
|
void zeroVolmeter(std::string name); // Zero the volmeter for a source.
|
|
93
93
|
|
|
94
|
+
obs_scene_t *scene = nullptr;
|
|
95
|
+
|
|
94
96
|
private:
|
|
95
97
|
obs_output_t *output = nullptr;
|
|
96
|
-
obs_scene_t *scene = nullptr;
|
|
97
98
|
|
|
98
99
|
obs_encoder_t *video_encoder = nullptr;
|
|
99
100
|
obs_encoder_t *audio_encoder = nullptr;
|