From f8cd393b2a224c9d521ef3a4a1dfb26502a4f962 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 7 Jan 2025 18:37:30 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=8C=EC=84=B1=EB=A9=94=EC=8B=9C=EC=A7=80,?= =?UTF-8?q?=20=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20=EC=98=A4=EB=94=94?= =?UTF-8?q?=EC=98=A4=20=EB=85=B9=EC=9D=8C,=20=EC=98=A4=EB=94=94=EC=85=98?= =?UTF-8?q?=20=EB=85=B9=EC=9D=8C=20=EB=93=B1=20=EC=95=B1=20=EB=82=B4?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EB=85=B9=EC=9D=8C=ED=95=9C=20=EC=9E=84?= =?UTF-8?q?=EC=8B=9C=20=ED=8C=8C=EC=9D=BC=EC=9D=98=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=EB=A5=BC=20=EC=9A=A9=EC=9D=B4=ED=95=98=EA=B2=8C=20=ED=95=98?= =?UTF-8?q?=EA=B8=B0=20=EC=9C=84=ED=95=B4=20=EC=9E=84=EC=8B=9C=20=EB=85=B9?= =?UTF-8?q?=EC=9D=8C=20=ED=8C=8C=EC=9D=BC=20=EC=9D=B4=EB=A6=84=EC=97=90=20?= =?UTF-8?q?voiceon=5Fnow=5Fvoice=EB=A5=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Audition/Applicant/AuditionApplyView.swift | 2 +- .../Sources/Audition/Role/AuditionRoleDetailViewModel.swift | 2 +- .../Write/CreatorCommunityRecordingVoiceView.swift | 2 +- .../CreatorCommunity/Write/CreatorCommunitySoundManager.swift | 2 +- SodaLive/Sources/Message/Voice/SoundManager.swift | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SodaLive/Sources/Audition/Applicant/AuditionApplyView.swift b/SodaLive/Sources/Audition/Applicant/AuditionApplyView.swift index 201573d..f18567c 100644 --- a/SodaLive/Sources/Audition/Applicant/AuditionApplyView.swift +++ b/SodaLive/Sources/Audition/Applicant/AuditionApplyView.swift @@ -159,7 +159,7 @@ struct AuditionApplyView: View { AuditionApplyView( isShowing: .constant(true), phoneNumber: .constant(""), - filename: "now_voice_9292939.m4a", + filename: "voiceon_now_voice_9292939.m4a", onClickApply: {} ) } diff --git a/SodaLive/Sources/Audition/Role/AuditionRoleDetailViewModel.swift b/SodaLive/Sources/Audition/Role/AuditionRoleDetailViewModel.swift index 38d3e3d..c23f63d 100644 --- a/SodaLive/Sources/Audition/Role/AuditionRoleDetailViewModel.swift +++ b/SodaLive/Sources/Audition/Role/AuditionRoleDetailViewModel.swift @@ -227,7 +227,7 @@ final class AuditionRoleDetailViewModel: ObservableObject { if decoded.success { self.errorMessage = "오디션 지원이 완료되었습니다." self.isShowPopup = true - self.deleteAllRecordingFilesWithNamePrefix("voiceon_") + self.deleteAllRecordingFilesWithNamePrefix("voiceon_now_voice") self.applicantList = [] self.totalCount = 0 diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/Write/CreatorCommunityRecordingVoiceView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/Write/CreatorCommunityRecordingVoiceView.swift index f9e207a..d28ad10 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/Write/CreatorCommunityRecordingVoiceView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/Write/CreatorCommunityRecordingVoiceView.swift @@ -61,7 +61,7 @@ struct CreatorCommunityRecordingVoiceView: View { .onTapGesture { if !soundManager.isLoading { if !soundManager.isRecording { - tempFileName = "now_voice_\(Int(Date().timeIntervalSince1970 * 1000)).m4a" + tempFileName = "voiceon_now_voice_\(Int(Date().timeIntervalSince1970 * 1000)).m4a" soundManager.startRecording(tempFileName) } else { soundManager.stopRecording() diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/Write/CreatorCommunitySoundManager.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/Write/CreatorCommunitySoundManager.swift index 7a37d7a..7ba4761 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/Write/CreatorCommunitySoundManager.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/Write/CreatorCommunitySoundManager.swift @@ -32,7 +32,7 @@ class CreatorCommunitySoundManager: NSObject, ObservableObject { var player: AVAudioPlayer! var audioRecorder: AVAudioRecorder! - var fileName = "now_voice.m4a" + var fileName = "voiceon_now_voice.m4a" let audioSession = AVAudioSession.sharedInstance() func prepareRecording() { diff --git a/SodaLive/Sources/Message/Voice/SoundManager.swift b/SodaLive/Sources/Message/Voice/SoundManager.swift index f39b6bb..4e4cb8a 100644 --- a/SodaLive/Sources/Message/Voice/SoundManager.swift +++ b/SodaLive/Sources/Message/Voice/SoundManager.swift @@ -153,7 +153,7 @@ class SoundManager: NSObject, ObservableObject { } func getAudioFileURL() -> URL { - return getDocumentsDirectory().appendingPathComponent("recording.m4a") + return getDocumentsDirectory().appendingPathComponent("voiceon_now_voice_recording.m4a") } private func getDocumentsDirectory() -> URL {