用ACM控件做的一个语音软件,但每次通讯前都要 弹出一个声音选择对话框,怎么样跳过这个,我用的是GSM610
procedure TForm2.btn1Click(Sender: TObject);
var format:pointer;begin
format:=ACMDialog1.OpenDialog;
if format=nil then exit;
idc.Active:=true;
ACMWaveOut1.Open(format);
ACMWaveIn1.Open(format);
end;
procedure TForm2.btn1Click(Sender: TObject);
var format:pointer;begin
format:=ACMDialog1.OpenDialog;
if format=nil then exit;
idc.Active:=true;
ACMWaveOut1.Open(format);
ACMWaveIn1.Open(format);
end;
解决方案 »
- delphi7中很多第三方控件not found 创建窗体时发生错误
- webbrowser里怎么清除session
- TRichEdit如何获取用鼠标选择的文字
- 急求 Delphi编写 三次样条插值函数
- 串口接收数据时,运行几次后,提示variant or safe array index of out bounds错误!!求助各位朋友!谢谢!!
- 不好意思求一条SQL语句
- 用NMUDP控件编写局域网聊天遇到的莫名问题。
- 如果获得现在CPU的使用率,内存的使用率?请客位大侠帮忙。
- 关于文件的操作问题,请指教。
- Paradox数据库问题
- 如何让封装在DLL中的窗体响应Enter键和Esc键?
- Delphi字符串匹配,高手帮帮忙啊,我是初学者。。。非常感谢
我记得以前回复过你这个问题吧!!这么久了还没解决?
按你回复的方法 运行还是有错误
access vilotion at address 004029fd in mmodule
应该是下面这块程序有问题,但我实在不懂这个
with gsm610 do
begin
wFormatTag:=$31;
nChannels:=1;
wBitsPerSample:=0;
nSamplesPerSec:=8000;
nBlockAlign:=65;
nAvgBytesPerSec:=1625;
cbSize:=2;
wSamplesPerBlock:=$140;
end;
format:=@gsm610;
ACMWaveOut1.Open(format); //这个就可以跳过声音选定对话框
ACMWaveIn1.Open(format);
begin
SoundCap.StartCap;
SoundCap.OpenCapture(Form1.Handle);
with gsm610 do
begin
wFormatTag:=$31;
nChannels:=1;
wBitsPerSample:=0;
nSamplesPerSec:=8000;
nBlockAlign:=65;
nAvgBytesPerSec:=1625;
cbSize:=2;
wSamplesPerBlock:=$140;
end;
format:=@gsm610;
ACMWaveOut1.Open(format);
ACMWaveIn1.Open(format);
不知道你那是怎么回事,我这代码一直用得很好!