음성메시지, 커뮤니티 오디오 녹음, 오디션 녹음 등 앱 내에서 녹음한 임시 파일의 삭제를 용이하게 하기 위해 임시 녹음 파일 이름에 voiceon_now_voice를 추가
This commit is contained in:
		| @@ -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: {} | ||||
|     ) | ||||
| } | ||||
|   | ||||
| @@ -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 | ||||
|                              | ||||
|   | ||||
| @@ -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() | ||||
|   | ||||
| @@ -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() { | ||||
|   | ||||
| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung