음성메시지, 커뮤니티 오디오 녹음, 오디션 녹음 등 앱 내에서 녹음한 임시 파일의 삭제를 용이하게 하기 위해 임시 녹음 파일 이름에 voiceon_now_voice를 추가

This commit is contained in:
Yu Sung
2025-01-07 18:37:30 +09:00
parent 1d9964721f
commit f8cd393b2a
5 changed files with 5 additions and 5 deletions

View File

@@ -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()

View File

@@ -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() {