解决删除不了录音的问题
authorluozheng <1732036298@qq.com>
Mon, 25 Mar 2024 07:32:09 +0000 (15:32 +0800)
committerluozheng <1732036298@qq.com>
Mon, 25 Mar 2024 07:32:09 +0000 (15:32 +0800)
code/sdk/application/wearable/fd230app/nativeui/record/include/RecordingModel.h
code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp

index 96c6910..e482a50 100644 (file)
@@ -81,7 +81,7 @@ namespace OHOS
         void Recording_StartTimer(uint32_t interval);
         void Recording_StopTimer(void);
         char *DisplayRecordDuration(void);
-
+        const char * GetRecordDirectory() const;
     private:
         RecordingModel();
         RecordingModel(const RecordingModel &) = delete;
index f3e4e34..b96dfa1 100644 (file)
@@ -203,8 +203,8 @@ namespace OHOS
     }
 
     /*
-    * @brief 退出录音播放界面后清除播放器资源
-    */
+     * @brief 退出录音播放界面后清除播放器资源
+     */
     void RecordingModel::ClearRecordingPlayer(void)
     {
         if (GetPlayerCtr() != nullptr)
@@ -620,6 +620,10 @@ namespace OHOS
         return RecordingTimeAndDuration;
     }
 
+    const char *RecordingModel::GetRecordDirectory() const
+    {
+        return directory.c_str();
+    }
     /* ----------------------------------- 定时器 ---------------------------------- */
     // 声明定时器变量
     osTimerId_t g_timer = NULL;