Delphi 得到不同平台的录音文件保存路径


本文整理自网络,侵删。

 
uses
  System.IOUtils; // 需要引入

// 得到不同平台的录音文件保存路径
function GetAudioFileName(const AFileName: string): string;
begin
{$IFDEF ANDROID}
  Result := TPath.GetTempPath + '/' + AFileName;
{$ELSE}
{$IFDEF IOS}
  Result := TPath.GetHomePath + '/Documents/' + AFileName;
{$ELSE}
  Result := AFileName;
{$ENDIF}
{$ENDIF}
end;

相关阅读 >>

Delphi xe2 硬盘序列号

Delphi 如何知道鼠标点击的statusbar的位置

Delphi 从一个html返回所有的图片链接

Delphi 2009 泛型容器单元(generics.collections)[3]: tstack<t>

Delphi 中的哈希表: thashedstringlist

Delphi 官方使用并行编程库介绍

Delphi getforegroundwindow 与 getactivewindow 的区别

Delphi 泛型搜索字符串数组

Delphi 合并文本行的函数

Delphi unigui确认对话框

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...