openmixer — generated API reference
    Preparing search index...

    Function overlayConfig

    • Overlay one sparse config over another, per SECTION FIELD: a field the overlay sets wins; a field it leaves out keeps the base value (schema defaults only apply to fields neither layer set — apply them by parseConfiging the result). device.options is replaced whole, not merged (it is adapter-opaque).

      Parameters

      • base: {
            adapter?: "x32" | "midas" | "roland" | "software";
            device?: {
                host?: string;
                options?: Record<string, unknown>;
                port?: number;
            };
            rig?: {
                catalog?: string;
                console?: string;
                demoSources?: boolean;
                gig?: string;
                preset?: "bare"
                | "demo"
                | "console";
            };
            web?: { host?: string; manualDir?: string; port?: number };
        }
      • over: {
            adapter?: "x32" | "midas" | "roland" | "software";
            device?: {
                host?: string;
                options?: Record<string, unknown>;
                port?: number;
            };
            rig?: {
                catalog?: string;
                console?: string;
                demoSources?: boolean;
                gig?: string;
                preset?: "bare"
                | "demo"
                | "console";
            };
            web?: { host?: string; manualDir?: string; port?: number };
        }

      Returns {
          adapter?: "x32" | "midas" | "roland" | "software";
          device?: {
              host?: string;
              options?: Record<string, unknown>;
              port?: number;
          };
          rig?: {
              catalog?: string;
              console?: string;
              demoSources?: boolean;
              gig?: string;
              preset?: "bare"
              | "demo"
              | "console";
          };
          web?: { host?: string; manualDir?: string; port?: number };
      }