hyperion.ng/libsrc/hyperion/schema
Michael Rochelle acdf733936
Audio Grabber Feature (#1570)
* Creating Audio Grabber

Creating Audio Grabber

Creating Audio Grabber.

Successfully began capturing audio in windows. Starting to implement a hard-coded UV Visualizer.

Got Windows DirectSound Implementation working.
Hardcoded basic VU Meter.

Begin working on linux audio grabber implementation.

Finished Linux Draft Implementation.
Minor Mods to windows implementation.

Windows:
 - Free memory used by device id.
 - Prevent starting audio if the grabber is disabled
 - More debug logging

Linux:
 - Prevent starting audio if the grabber is disabled

Added strings to english
Removed "custom" from device selection
Made hard-coded visualizer values configurable.
wrote values to imageData with BGR priority to enable configurable values to be set in RGB format.
created logic to support "Automatic" to enable the API to select the default device.

Add language key for audio in "Remote Control" section.
Removed audio configuration for number of channels. This was causing an error with some devices.

Fixed logic to update capture while its active.
Optimizing code .

UI Tweaks
Destructuring.

Fixed build error on linux.

Custom Effects - Clean-ups and Enhancements (#1163)

* Cleanup EffectFileHandler

* Support Custom Effect Schemas and align EffectFileHandler

* Change back to colon prefix for system effects

* WebSockets - Fix error in handling fragmented frames

* Correct missing colon updates

* Update json with image file location for custom gif effects

* Image effect deletion - considere full filename is stored in JSON

* Correct selection lists indentions

Creating Audio Grabber

Creating Audio Grabber

Creating Audio Grabber.

Successfully began capturing audio in windows. Starting to implement a hard-coded UV Visualizer.

Got Windows DirectSound Implementation working.
Hardcoded basic VU Meter.

Begin working on linux audio grabber implementation.

Finished Linux Draft Implementation.
Minor Mods to windows implementation.

Windows:
 - Free memory used by device id.
 - Prevent starting audio if the grabber is disabled
 - More debug logging

Linux:
 - Prevent starting audio if the grabber is disabled

Added strings to english
Removed "custom" from device selection
Made hard-coded visualizer values configurable.
wrote values to imageData with BGR priority to enable configurable values to be set in RGB format.
created logic to support "Automatic" to enable the API to select the default device.

Add language key for audio in "Remote Control" section.
Removed audio configuration for number of channels. This was causing an error with some devices.

Fixed logic to update capture while its active.
Optimizing code .

UI Tweaks
Destructuring.

Fixed build error on linux.

Commented setVideoMode from AudioGrabber.

Linux Threading changes.

Implementing new API

Continuing to implement audio into new APIs

Fixed Audio Grabber for DirectSound on Windows
Fixed UI for Audio Grabber Configuration
Default AUDIO to off unless specified.

fixed missing #ifdef for audio grabber.

Added logic to calculate a dynamic multiplier from the signal input.

Updating linux api for discovering devices.

Fixed HTML/JS issues with view.
Fixed NPE in Windows.
Disabled setting thread priority in linux.

updated the schema options check to pass through hidden states and commented the change.

Updated grabber start conditions
Updated Audio grabber to instantiate similar to video grabber

Updated windows grabber to set "started" flag to false when shutting down.
Removed "tryStart" to prevent enabling audio capture unnecessarily.

Fixing instance audio grabber device configuration

Added configurable resolution
Reduced tolerance to 5%
Fixed issue where grabber failed for additional instances when "start" was called multiple times.

Fixed resolution calculation

Change averaging algorithm to prevent overflowing the sum.

Updated logic to stop audio grabber when disabled.

Fix integer casting and rounding.

Restart grabber on configuration change.
Fix missing include/grabber/AudioGrabber.
Disable tolerance.

Added configurable tolerance.
Fixed tolerance algorithm.
reset multiplier on configuration change.

Line Endings

Proposed change and questions/request to fix

implementing more of LordGrey's suggestions.

Fix mode for snd_pcm_open. Latest ALSA uses SND_PCM_NONBLOCK instead of SND_PCM_OPEN_NONBLOCK
defaulted multiplier to 0 "auto"
defaulted tolerance to 20%

changed 100 to 100.0 for pixel value percentage calculation to fix value from being 0.

missed a 100 as a double so precision isn't lost during math operation.

Fix Windows grabber and further cleanups

Enable Audio grabbing in standard build

Remove empty methods

Fix audio capture priority setting

Remove unused code

Clean-up default config

Allow additional json-editor attributes

Allow multiple effects and resetting to defaults

Correct default values

Allow to build for Qt < 5.14

Update CodeQL build dependency

Update build dependencies

Remove effect1 placeholder

* Renamed uvMeter to VU Meter (Volume Unit)
- Fixed issues flagged by code scanning bot.

* Moved stop call into destructor of implementing class.

* Removed commented linux audio channel configuration logic.

---------

Co-authored-by: Michael Rochelle <michael@j2inn.com>
2023-02-19 09:36:39 +01:00
..
schema-backgroundEffect.json feat: SchemaChecker & V4L2 enhancement (#734) 2020-03-27 23:13:58 +01:00
schema-blackborderdetector.json Implement letterbox-only blackbar detection mode (#1063) 2020-11-01 19:20:27 +01:00
schema-boblightServer.json UI and Web updates (#1421) 2022-02-22 20:58:59 +01:00
schema-color.json Dominant Color support (#1569) 2023-02-17 16:02:51 +01:00
schema-device.json mDNS Support (#1452) 2022-05-01 19:42:47 +02:00
schema-effects.json JsonUtils & improvements (#476) 2017-10-12 11:55:03 +02:00
schema-flatbufServer.json add flatbuffer dependencies 2018-12-28 18:08:58 +01:00
schema-foregroundEffect.json feat: SchemaChecker & V4L2 enhancement (#734) 2020-03-27 23:13:58 +01:00
schema-forwarder.json mDNS Support (#1452) 2022-05-01 19:42:47 +02:00
schema-framegrabber.json IPv6 support (#1369) 2021-11-17 21:30:43 +01:00
schema-general.json Dynamic Device Selection/Configuration (#1164) 2021-04-24 19:37:29 +02:00
schema-grabberAudio.json Audio Grabber Feature (#1570) 2023-02-19 09:36:39 +01:00
schema-grabberV4L2.json Media Foundation/V4L2 grabber ... (#1119) 2021-07-14 20:48:33 +02:00
schema-instCapture.json Audio Grabber Feature (#1570) 2023-02-19 09:36:39 +01:00
schema-jsonServer.json JsonUtils & improvements (#476) 2017-10-12 11:55:03 +02:00
schema-ledConfig.json UI and Web updates (#1421) 2022-02-22 20:58:59 +01:00
schema-leds.json refactor: Led layout, clearAll (#703) 2020-02-26 18:54:56 +01:00
schema-logger.json JSON Auto correction + hyperion schema split for better readability (#452) 2017-07-30 13:32:10 +02:00
schema-network.json feat: SchemaChecker & V4L2 enhancement (#734) 2020-03-27 23:13:58 +01:00
schema-protoServer.json ProtoBuffer, UDPListener ... 2019-02-17 15:26:11 +01:00
schema-smoothing.json Fixes - Smoothing, Color-Calibration (#1532) 2022-11-27 15:47:54 +01:00
schema-webConfig.json Update schema-webConfig.json 2023-02-17 17:09:12 +01:00