This commit is contained in:
thororen1234 2024-07-18 01:47:37 -04:00
parent 51402bb47e
commit 53c4fd5bed
8 changed files with 7 additions and 10 deletions

View file

@ -22,6 +22,7 @@ import { ModalSize } from "@utils/modal";
import { Card, Forms, Select, Slider, TextInput, useEffect, useState } from "@webpack/common"; import { Card, Forms, Select, Slider, TextInput, useEffect, useState } from "@webpack/common";
import { SelectOption } from "@webpack/types"; import { SelectOption } from "@webpack/types";
import { MicrophoneProfile, MicrophoneStore } from "../../betterMicrophone/stores";
import { import {
ProfilableStore, ProfilableStore,
SettingsModal, SettingsModal,
@ -33,7 +34,6 @@ import {
validateTextInputNumber validateTextInputNumber
} from "../../philsPluginLibrary"; } from "../../philsPluginLibrary";
import { Styles } from "../../philsPluginLibrary/styles"; import { Styles } from "../../philsPluginLibrary/styles";
import { MicrophoneProfile, MicrophoneStore } from "../stores";
const simpleVoiceBitrates: readonly SelectOption[] = [ const simpleVoiceBitrates: readonly SelectOption[] = [
{ {

View file

@ -22,6 +22,7 @@ import { ModalSize, openModalLazy } from "@utils/modal";
import { Button, Card, Forms, React, Select, Slider, TextInput, useEffect, useState } from "@webpack/common"; import { Button, Card, Forms, React, Select, Slider, TextInput, useEffect, useState } from "@webpack/common";
import { SelectOption } from "@webpack/types"; import { SelectOption } from "@webpack/types";
import { MicrophoneSettingsModal } from "../../betterMicrophone/components";
import { import {
MediaEngineStore, MediaEngineStore,
openURL, openURL,
@ -38,7 +39,6 @@ import {
import { Styles } from "../../philsPluginLibrary/styles"; import { Styles } from "../../philsPluginLibrary/styles";
import { PluginInfo } from "../constants"; import { PluginInfo } from "../constants";
import { ScreenshareAudioProfile, ScreenshareAudioStore, ScreenshareProfile, ScreenshareStore } from "../stores"; import { ScreenshareAudioProfile, ScreenshareAudioStore, ScreenshareProfile, ScreenshareStore } from "../stores";
import { MicrophoneSettingsModal } from ".";
const simpleResolutions: readonly (SelectOption & { value: types.Resolution; })[] = [ const simpleResolutions: readonly (SelectOption & { value: types.Resolution; })[] = [
{ {

View file

@ -17,6 +17,5 @@
*/ */
export * from "./AudioSourceSelect"; export * from "./AudioSourceSelect";
export * from "./MicrophoneSettingsModal";
export * from "./OpenScreenshareSettingsButton"; export * from "./OpenScreenshareSettingsButton";
export * from "./ScreenshareSettingsModal"; export * from "./ScreenshareSettingsModal";

View file

@ -16,6 +16,5 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
export * from "./microphoneStore";
export * from "./screenshareAudioStore"; export * from "./screenshareAudioStore";
export * from "./screenshareStore"; export * from "./screenshareStore";

View file

@ -16,14 +16,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import { createPluginStore, ProfilableStore, profileable } from "../../philsPluginLibrary";
import { PluginInfo } from "../constants";
import { import {
defaultMicrophoneProfiles as defaultScreenshareAudioProfiles, defaultMicrophoneProfiles as defaultScreenshareAudioProfiles,
MicrophoneProfile as ScreenshareAudioProfile, MicrophoneProfile as ScreenshareAudioProfile,
MicrophoneStore as ScreenshareAudioStore, MicrophoneStore as ScreenshareAudioStore,
microphoneStoreDefault as screenshareAudioStoreDefault microphoneStoreDefault as screenshareAudioStoreDefault
} from "."; } from "../../betterMicrophone/stores";
import { createPluginStore, ProfilableStore, profileable } from "../../philsPluginLibrary";
import { PluginInfo } from "../constants";
export let screenshareAudioStore: ProfilableStore<ScreenshareAudioStore, ScreenshareAudioProfile>; export let screenshareAudioStore: ProfilableStore<ScreenshareAudioStore, ScreenshareAudioProfile>;

View file

@ -19,8 +19,8 @@
import { Logger } from "@utils/Logger"; import { Logger } from "@utils/Logger";
import { lodash } from "@webpack/common"; import { lodash } from "@webpack/common";
import { MicrophoneProfile, MicrophoneStore } from "../../betterMicrophone.desktop/stores";
import { ProfilableStore, replaceObjectValuesIfExist, types } from ".."; import { ProfilableStore, replaceObjectValuesIfExist, types } from "..";
import { MicrophoneProfile, MicrophoneStore } from "../store";
export function getDefaultAudioTransportationOptions(connection: types.Connection) { export function getDefaultAudioTransportationOptions(connection: types.Connection) {
return { return {

View file

@ -19,8 +19,8 @@
import { Logger } from "@utils/Logger"; import { Logger } from "@utils/Logger";
import { lodash } from "@webpack/common"; import { lodash } from "@webpack/common";
import { ScreenshareProfile, ScreenshareStore } from "../../betterScreenshare/stores";
import { ProfilableStore, replaceObjectValuesIfExist, types, utils } from ".."; import { ProfilableStore, replaceObjectValuesIfExist, types, utils } from "..";
import { ScreenshareProfile, ScreenshareStore } from "../store";
export function getDefaultVideoTransportationOptions(connection: types.Connection) { export function getDefaultVideoTransportationOptions(connection: types.Connection) {

View file

@ -16,7 +16,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
export * from "./microphoneStore";
export * from "./profileable"; export * from "./profileable";
export * from "./screenshareAudioStore"; export * from "./screenshareAudioStore";
export * from "./screenshareStore"; export * from "./screenshareStore";