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