论坛


2011年1月19日 星期三

在 Delphi 下使用 DirectSound (7): 播放资源文件中的 Wave 数据

万一| 万一的 Delphi 博客 |16:44:00

首先要修改前面自定义的 ReadWaveFile 单元, 给它增加一个 OpenResource() 方法以直接读取资源文件中的 "WAVE" 数据:unit ReadWaveFile; interface uses Windows, Classes, SysUtils, MMSystem; type TReadWaveFile = class private FFileHandle: HMMIO; FFor...

在 Delphi 下使用 DirectSound (6): 按文件自己的格式(TWaveFormatEx)播放

万一| 万一的 Delphi 博客 |14:04:00

这必须手动建立主缓冲区.unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure FormCreate(Sender: TObject); ...

在 Delphi 下使用 DirectSound (5): 获取或设置缓冲区的格式:

万一| 万一的 Delphi 博客 |13:12:00

次缓冲区(或叫辅助缓冲区)尽管使用了波形文件自己的 TWaveFormatEx, 但最终播放的却只是 22050HZ 的 8 位立体声.因为次缓冲区最终要混入主缓冲区才播放, 可主缓冲区的缺省格式是 22050HZ 的 8 位立体声(这利于在不同应用程序之间的平滑切换).次缓冲区一旦建立, 其格?..

Amazon introduces AWS Elastic Beanstalk and just can’t stop innovating

Pawel Glowacki| Pawel Glowacki |10:08:35

When Delphi XE introduced few months ago the support for deploying applications directly from the IDE into the Amazon EC2 cloud, I have started to be intrigued by Amazon Web Services and kept watching it. To me Amazon is clearly one of the most?in...