Various improvements & Cleanups
Some ported from ANightly's work
This commit is contained in:
@@ -330,8 +330,7 @@ static const device_config_t fluidsynth_config[] = {
|
||||
.name = "output_gain",
|
||||
.description = "Output Gain",
|
||||
.type = CONFIG_SPINNER,
|
||||
.spinner =
|
||||
{
|
||||
.spinner = {
|
||||
.min = 0,
|
||||
.max = 100
|
||||
},
|
||||
@@ -347,8 +346,7 @@ static const device_config_t fluidsynth_config[] = {
|
||||
.name = "chorus_voices",
|
||||
.description = "Chorus Voices",
|
||||
.type = CONFIG_SPINNER,
|
||||
.spinner =
|
||||
{
|
||||
.spinner = {
|
||||
.min = 0,
|
||||
.max = 99
|
||||
},
|
||||
@@ -358,8 +356,7 @@ static const device_config_t fluidsynth_config[] = {
|
||||
.name = "chorus_level",
|
||||
.description = "Chorus Level",
|
||||
.type = CONFIG_SPINNER,
|
||||
.spinner =
|
||||
{
|
||||
.spinner = {
|
||||
.min = 0,
|
||||
.max = 100
|
||||
},
|
||||
@@ -369,8 +366,7 @@ static const device_config_t fluidsynth_config[] = {
|
||||
.name = "chorus_speed",
|
||||
.description = "Chorus Speed",
|
||||
.type = CONFIG_SPINNER,
|
||||
.spinner =
|
||||
{
|
||||
.spinner = {
|
||||
.min = 10,
|
||||
.max = 500
|
||||
},
|
||||
@@ -380,8 +376,7 @@ static const device_config_t fluidsynth_config[] = {
|
||||
.name = "chorus_depth",
|
||||
.description = "Chorus Depth",
|
||||
.type = CONFIG_SPINNER,
|
||||
.spinner =
|
||||
{
|
||||
.spinner = {
|
||||
.min = 0,
|
||||
.max = 2560
|
||||
},
|
||||
@@ -391,8 +386,7 @@ static const device_config_t fluidsynth_config[] = {
|
||||
.name = "chorus_waveform",
|
||||
.description = "Chorus Waveform",
|
||||
.type = CONFIG_SELECTION,
|
||||
.selection =
|
||||
{
|
||||
.selection = {
|
||||
{
|
||||
.description = "Sine",
|
||||
.value = 0
|
||||
@@ -414,8 +408,7 @@ static const device_config_t fluidsynth_config[] = {
|
||||
.name = "reverb_room_size",
|
||||
.description = "Reverb Room Size",
|
||||
.type = CONFIG_SPINNER,
|
||||
.spinner =
|
||||
{
|
||||
.spinner = {
|
||||
.min = 0,
|
||||
.max = 100
|
||||
},
|
||||
@@ -425,8 +418,7 @@ static const device_config_t fluidsynth_config[] = {
|
||||
.name = "reverb_damping",
|
||||
.description = "Reverb Damping",
|
||||
.type = CONFIG_SPINNER,
|
||||
.spinner =
|
||||
{
|
||||
.spinner = {
|
||||
.min = 0,
|
||||
.max = 100
|
||||
},
|
||||
@@ -436,8 +428,7 @@ static const device_config_t fluidsynth_config[] = {
|
||||
.name = "reverb_width",
|
||||
.description = "Reverb Width",
|
||||
.type = CONFIG_SPINNER,
|
||||
.spinner =
|
||||
{
|
||||
.spinner = {
|
||||
.min = 0,
|
||||
.max = 1000
|
||||
},
|
||||
@@ -447,8 +438,7 @@ static const device_config_t fluidsynth_config[] = {
|
||||
.name = "reverb_level",
|
||||
.description = "Reverb Level",
|
||||
.type = CONFIG_SPINNER,
|
||||
.spinner =
|
||||
{
|
||||
.spinner = {
|
||||
.min = 0,
|
||||
.max = 100
|
||||
},
|
||||
@@ -458,8 +448,7 @@ static const device_config_t fluidsynth_config[] = {
|
||||
.name = "interpolation",
|
||||
.description = "Interpolation Method",
|
||||
.type = CONFIG_SELECTION,
|
||||
.selection =
|
||||
{
|
||||
.selection = {
|
||||
{
|
||||
.description = "None",
|
||||
.value = 0
|
||||
|
||||
@@ -24,7 +24,11 @@
|
||||
#define RESID_BRANCH_HINTS true
|
||||
|
||||
// Compiler specifics.
|
||||
#ifndef _MSC_VER
|
||||
#define HAVE_BUILTIN_EXPECT true
|
||||
#else
|
||||
#define HAVE_BUILTIN_EXPECT false
|
||||
#endif
|
||||
|
||||
// Branch prediction macros, lifted off the Linux kernel.
|
||||
#if RESID_BRANCH_HINTS && HAVE_BUILTIN_EXPECT
|
||||
|
||||
@@ -173,8 +173,8 @@ static const device_config_t opl2board_config[] = {
|
||||
.type = CONFIG_SERPORT,
|
||||
.default_string = "",
|
||||
.file_filter = NULL,
|
||||
.spinner = {},
|
||||
.selection = {}
|
||||
.spinner = { 0 },
|
||||
.selection = { { 0 } }
|
||||
},
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
};
|
||||
|
||||
@@ -86,6 +86,7 @@
|
||||
* Copyright 2008-2024 Sarah Walker.
|
||||
* Copyright 2024 Miran Grca.
|
||||
*/
|
||||
#define _USE_MATH_DEFINES
|
||||
#include <math.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
|
||||
Reference in New Issue
Block a user