Delphi Firemonkey获取音频驱动程序/设备列表

时间:2016-04-20 13:11:21

标签: delphi firemonkey

如何获取Windows&amp ;;的音频(声音)驱动程序/设备名称列表? MacOS X?

1 个答案:

答案 0 :(得分:1)

如果您需要to record audio in FMX,请执行:

var
  AudioCapture : TAudioCaptureDevice;
begin
  // Get access to the default audio capture device
  AudioCapture:= TCaptureDeviceManager.Current.DefaultAudioCaptureDevice;
  if Assigned(AudioCapture) then
  begin
     //do something
  end;
end;

请参阅:http://docwiki.embarcadero.com/Libraries/Seattle/en/FMX.Media.TAudioCaptureDevice

如果您想在FMX use TMediaPlayer

中播放声音/音频

有关FMX中音频/视频服务的概述,请参阅:http://docwiki.embarcadero.com/RADStudio/Seattle/en/Audio-Video_in_FireMonkey