From 4306ea87fe27d2f31c4751ef712df4d0f5a12183 Mon Sep 17 00:00:00 2001 From: Eliastik <26941242+Eliastik@users.noreply.github.com> Date: Sat, 15 Jun 2024 21:56:39 +0200 Subject: [PATCH] Temporary fix pipeline --- src/app/context/ApplicationConfigContext.tsx | 4 ++-- src/app/page.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/context/ApplicationConfigContext.tsx b/src/app/context/ApplicationConfigContext.tsx index b167045..46bad56 100644 --- a/src/app/context/ApplicationConfigContext.tsx +++ b/src/app/context/ApplicationConfigContext.tsx @@ -2,7 +2,7 @@ import { createContext, useContext, useState, ReactNode, FC, useEffect } from "react"; import { AudioEditor, EventType, Constants } from "@eliastik/simple-sound-studio-lib"; -import { SoundStudioApplicationFactory } from "@eliastik/simple-sound-studio-components"; +import { ApplicationObjectsSingleton } from "@eliastik/simple-sound-studio-components"; import i18n from "@eliastik/simple-sound-studio-components/lib/i18n"; import i18next from "i18next"; import ApplicationConfigContextProps from "../model/contextProps/ApplicationConfigContextProps"; @@ -29,7 +29,7 @@ const getService = (): ApplicationConfigService => { }; const getAudioEditor = (): AudioEditor => { - return SoundStudioApplicationFactory.getAudioEditorInstance()!; + return ApplicationObjectsSingleton.getAudioEditorInstance()!; }; let isReady = false; diff --git a/src/app/page.tsx b/src/app/page.tsx index e8f27ee..2f58a11 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,7 +2,7 @@ import { useEffect } from "react"; import MainComponent from "./components/MainComponent"; -import { SoundStudioApplicationFactory, useAudioEditor } from "@eliastik/simple-sound-studio-components"; +import { ApplicationObjectsSingleton, useAudioEditor } from "@eliastik/simple-sound-studio-components"; import { useApplicationConfig } from "./context/ApplicationConfigContext"; import ApplicationConfigSingleton from "./context/ApplicationConfigSingleton"; import Constants from "./model/Constants"; @@ -13,7 +13,7 @@ const Home = () => { useEffect(() => { // Initialize SoundStudioApplicationFactory - SoundStudioApplicationFactory.initializeApplication(ApplicationConfigSingleton.getConfigServiceInstance(), Constants.AUDIO_BUFFERS_TO_FETCH); + ApplicationObjectsSingleton.initializeApplicationObjects(ApplicationConfigSingleton.getConfigServiceInstance(), Constants.AUDIO_BUFFERS_TO_FETCH); }, []); useEffect(() => {