Skip to content

Commit

Permalink
Fix SoundStudioApplicationFactory import
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliastik committed Sep 29, 2024
1 parent 9b04e1f commit 76bb62b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/app/context/ApplicationConfigContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { createContext, useContext, useState, ReactNode, FC, useEffect } from "react";
import { AudioEditor, EventType, Constants } from "@eliastik/simple-sound-studio-lib";
import { ApplicationObjectsSingleton } from "@eliastik/simple-sound-studio-components";
import { SoundStudioApplicationFactory } 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";
Expand All @@ -29,7 +29,7 @@ const getService = (): ApplicationConfigService => {
};

const getAudioEditor = (): AudioEditor => {
return ApplicationObjectsSingleton.getAudioEditorInstance()!;
return SoundStudioApplicationFactory.getAudioEditorInstance()!;
};

let isReady = false;
Expand Down
4 changes: 2 additions & 2 deletions src/app/context/AudioRecorderContext.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import { createContext, useContext, useState, ReactNode, FC, useEffect } from "react";
import { ApplicationObjectsSingleton } from "@eliastik/simple-sound-studio-components";
import { SoundStudioApplicationFactory } from "@eliastik/simple-sound-studio-components";
import { VoiceRecorder, EventType, RecorderSettings } from "@eliastik/simple-sound-studio-lib";
import AudioRecorderContextProps from "../model/contextProps/AudioRecorderContextProps";

Expand All @@ -20,7 +20,7 @@ interface AudioRecorderProviderProps {
}

const getRecorderInstance = (): VoiceRecorder => {
return ApplicationObjectsSingleton.getAudioRecorderInstance()!;
return SoundStudioApplicationFactory.getAudioRecorderInstance()!;
};

let isReady = false;
Expand Down
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useEffect } from "react";
import MainComponent from "./components/MainComponent";
import { ApplicationObjectsSingleton, useAudioEditor } from "@eliastik/simple-sound-studio-components";
import { SoundStudioApplicationFactory, useAudioEditor } from "@eliastik/simple-sound-studio-components";
import { useApplicationConfig } from "./context/ApplicationConfigContext";
import ApplicationConfigSingleton from "./context/ApplicationConfigSingleton";
import Constants from "./model/Constants";
Expand All @@ -13,7 +13,7 @@ const Home = () => {

useEffect(() => {
// Initialize SoundStudioApplicationFactory
ApplicationObjectsSingleton.initializeApplicationObjects(ApplicationConfigSingleton.getConfigServiceInstance(), Constants.AUDIO_BUFFERS_TO_FETCH);
SoundStudioApplicationFactory.initializeApplication(ApplicationConfigSingleton.getConfigServiceInstance(), Constants.AUDIO_BUFFERS_TO_FETCH);
}, []);

useEffect(() => {
Expand Down

0 comments on commit 76bb62b

Please sign in to comment.