DirectSound学习(三)--类、方法、属性翻译

DirectSound.Device :Contains methods and properties used to create buffer objects, manage devices, and set up the environment.
包含用于创建缓冲区对象,管理设备的方法和属性,并设置环境。
方法:
Method Description
Compact This method has no effect.
没有解释
Device Initializes a new instance of the Device class.
初始化Device的新实例。
Dispose Immediately releases the unmanaged resources used by the Device object.
立即处理发布的设备对象使用非托管资源。
Equals Returns a value that indicates whether the current instance is equal to a specified object.
返回一个值,表示当前实例是否等于指定的对象。
Finalize Allows the Device object to free resources before it is destroyed by the garbage collector.
确定允许的设备对象免费资源之前,它是由垃圾回收器销毁。
GetHashCode Returns the hash code for the current instance.
返回HashCode的当前实例。
GetObjectByValue This member supports the infrastructure for Microsoft DirectX 9.0 for Managed Code and is not intended to be used directly from your code.
这个成员支持微软DirectX 9的基础设施托管代码,不应在代码中直接使用。
raise_Disposing Raises the Device.Disposing event when called from within a derived class.
提高装置处理事件。当调用派生类中。
SetCooperativeLevel Sets the cooperative level of the application for this sound device.
设置此声音装置应用的合作水平。
属性:
Property Description
Caps Retrieves the capabilities of the hardware device.
检索硬件设备的能力。
Certified Ascertains whether the device driver is certified for DirectX.
注册确认设备驱动注册DirectX。
Disposed Gets a value that indicates whether the object is disposed.
设置获取一个值,指示对象是否设置。
SpeakerConfig Retrieves or sets the speaker configuration of the device.
检索或设置设备的扬声器配置。

DirectSound.BufferPositionNotify :Contains properties that describe a notification position.
包含描述通知位置属性。
方法:
Method Description
BufferPositionNotify Initializes a new instance of the BufferPositionNotify structure.
初始化的bufferpositionnotify结构的一个新实例。
属性:
Property Description
EventNotifyHandle Retrieves and sets the handle to the event to be signaled when the offset has been reached.
检索和设置事件句柄来通知时,偏移量已达到。
Offset Retrieves and sets the offset from the beginning of the buffer where the notify event is to be triggered, or PositionNotifyFlag.OffsetStop.
检索和设置偏移的缓冲,通知事件被触发的开始或positionnotifyflag.offsetstop。

DirectSound.WaveFormat: Contains properties that define the format of waveform-audio data.
包含的属性定义了波形音频数据格式。
方法:
Method Description
ToString Obtains a string representation of the current instance.
获得当前实例的字符串形式
WaveFormat Initializes a new instance of the WaveFormat sturcture.
初始化WaveFormat的一个新实例。
属性:
Property Description
AverageBytesPerSecond Retrieves and sets the required average data-transfer rate, in bytes per second, for the format type.
检索和设置所需的平均数据传输速率,单位是字节每秒(byte/s),对于格式类型。
BitsPerSample Retrieves and sets the bits per sample for the format type.
检索和设置格式类型每样位(bits)。
BlockAlign Retrieves and sets the minimum atomic unit of data, in bytes, for the format type.
检索和设置,以字节(btye)为最小单位的atomic的数据,对于格式类型。
Channels Retrieves and sets the number of channels in the waveform-audio data, for the format type.
检索和设置波形音频数据通道的数量,对于格式类型。
FormatTag Retrieves and sets the waveform-audio format type, for the format type.
检索和设置波形音频格式,该格式类型。
SamplesPerSecond Retrieves and sets the sample rate, in samples per second (hertz), for the format type.
检索和设置采样率,在样本每秒(hertz赫兹),对于格式类型。

DirectSound.BufferDescription :Contains properties and methods that describe the characteristics of a new buffer object.
包含的属性和方法,描述了一个新的缓冲区对象的特点。
方法:
Method Description
BufferDescription Initializes a new instance of the BufferDescription class.
初始化一个新的BufferDescription实例.
Dispose Immediately releases the unmanaged resources used by the BufferDescription object.
立即释放由bufferdescription对象使用的非托管资源.
Finalize Allows the BufferDescription object to free resources before it is destroyed by the garbage collector.
让bufferdescription对象释放资源之前,由垃圾回收器销毁。
属性:
Property Description
BufferBytes Retrieves or sets the size of the new buffer.
检索或设置新的buffer.
CanGetCurrentPosition Determines whether the application can get a more accurate play cursor.
确定应用程序是否可以得到更准确的playCursor。
Control3D Determines whether the buffer has 3-D control capability.
检索buffer是否有Control3D的能力
ControlEffects Specifies whether the buffer supports effects processing.
指定buffer支持效果处理能力。
ControlFrequency Specifies whether the buffer has frequency control capability.
指定buffer具有频率控制能力。
ControlPan Specifies whether the buffer has pan control capability.
指定buffer具有云台控制能力。
ControlPositionNotify Specifies whether the buffer has position notification capability.
指定buffer位置通知的能力。
ControlVolume Specifies whether the buffer has volume control capability.
指定buffer有音量控制能力。
DeferLocation Specifies whether the buffer can be assigned to a hardware or software resource at play time.
指定的buffer可以被分配到在游戏时间的硬件或软件资源。
Flags Retrieves or sets the capabilities of the buffer.
检索或设置缓冲能力。
Format Retrieves or sets the the waveform format for the buffer.
检索或设置buffer的波形格式。
GlobalFocus Specifies whether the buffer is a global sound buffer.
指定buffer是一个全局的buffer
Guid3DAlgorithm Retrieves or sets the unique identifier of the two-speaker virtualization algorithm to be used by DirectSound3D hardware emulation.
检索或设置两个扬声器虚拟化算法的唯一标识符是由DirectSound3D硬件仿真应用。
LocateInHardware Specifies whether the buffer must use hardware mixing.
指定buffer必须使用硬件混合。
LocateInSoftware Specifies whether the buffer must use software memory and use software mixing, even if BufferDescription.StaticBuffer is specified and hardware resources are available.
指定buffer必须使用软件存储和使用软件的混合,即使bufferdescription.staticbuffer指定硬件资源可用。
Mute3DAtMaximumDistance Specifies whether the sound is reduced to silence at the maximum distance.
指定是否声音沉默下来的最大距离。
PrimaryBuffer Specifies whether the buffer is a primary sound buffer.
指定buffer是一个主缓冲区
StaticBuffer Specifies whether the buffer is placed in on-board hardware memory, if available.
指定buffer被放置在板上的硬件内存,如果可用的话。
StickyFocus Specifies whether the buffer has sticky focus.
指定buffer静态的焦点。

DirectSound.SecondaryBuffer : 包含用于管理缓存,可以支持声音效果的方法和属性。
方法:
Method Description
AcquireResources Allocates resources for a SecondaryBuffer object that was created with the DeferLocation flag set in the BufferDescription.
配置secondarybuffer对象,设置bufferdescription并创建deferlocation标示
Clone Duplicates the SecondaryBuffer object.
复制SecondaryBuffer对象
Clone Duplicates the buffer object. Inherited from Buffer.
复制buffer对象,继承于buffer
Dispose Immediately releases the unmanaged resources used by the SecondaryBuffer object.
立即释放由secondarybuffer对象使用的非托管资源。
Equals Returns a value that indicates whether the current instance is equal to a specified object.
返回一个值,表示当前实例是否等于指定的对象。
Finalize Allows the SecondaryBuffer object to free resources before it is destroyed by the garbage collector.
让secondarybuffer对象释放资源之前,由垃圾回收器销毁。
GetCurrentPosition Retrieves the position of the play and write cursors in the sound buffer. Inherited from Buffer.
检索播放位置和声音缓冲区的writeCursors(写游标)的位置。继承于buffer。
GetEffects Retrieves a Microsoft DirectSound effect object or objects from a SecondaryBuffer object.
从secondarybuffer对象中检索一个Microsoft.DirectSound对象的效果。
GetHashCode Returns the hash code for the current instance.
返回当前实例的HashCode
GetObjectByValue This member supports the infrastructure for Microsoft DirectX 9.0 for Managed Code and is not intended to be used directly from your code.
这个成员支持微软DirectX 9的基础设施托管代码,不应在代码中直接使用。
GetObjectInPath Retrieves a DirectSound effect object at a particular index from a SecondaryBuffer object.
通过DirectSound对象的索引获取SecondaryBuffer对象的位置
Play Begin playing the sound buffer, starting at the play cursor. Inherited from Buffer.
开始播放sound buffer,开启play cursor。继承于Buffer。
raise_Disposing Raises the SecondaryBuffer.Disposing event when called from within a derived class.
提高secondarybuffer。处理事件时调用派生类中。
Read Reads the current data in the buffer. Inherited from Buffer.
在buffer中读取current位置,继承于Buffer
Restore Restores the memory allocation for a lost sound buffer. Inherited from Buffer.
恢复sound buffer的最后内存分配。继承于Buffer。
SecondaryBuffer Initializes a new instance of the SecondaryBuffer class.
初始化一个新的SecondaryBuffer实例
SetCurrentPosition Sets the position of the play cursor, which is the point at which the next byte of data is read from the buffer. Inherited from Buffer.
获取play cursor的位置,下一个字节仍在buffer中读取,继承于Buffer
SetEffects Enables effects on a SecondaryBuffer object.
获取SecondaryBuffer对象中effects的状态
Stop Causes the sound buffer to stop playing. Inherited from Buffer.
停止播放。继承于Buffer
Write Writes data to the buffer. Inherited from Buffer.
将数据写入buffer中。继承于Buffer
属性:
Property Description
Caps Retrieves the capabilities of the buffer object. Inherited from Buffer.
在buffer对象中检索capbilities,继承于Buffer
Disposed Gets a value that indicates whether the object is disposed.
获取一个值,指示对象是否可以设置
Format Retrieves or sets a description of the sound data format in the buffer. Inherited from Buffer.
检索或设置描述buffer中的音频数据格式。继承于Buffer。
Frequency Retrieves or sets the frequency, in samples per second, at which the buffer is playing. Inherited from Buffer.
检索或设置frequency(频率),在每秒采样,在缓冲播放。继承于Buffer。
NotVirtualized Retrieves a value that indicates whether the buffer is virtualized. Inherited from Buffer.
返回一个值,指示是否是虚拟缓冲区。继承于Buffer
Pan Retrieves or sets the relative volume of the left and right audio channels. Inherited from Buffer.
检索或设置左、右声道的相对量。
PlayPosition Retrieves the position of the play cursor in the sound buffer. Inherited from Buffer.
检索或设置play cursor(play游标)的的位置在sound buffer中
Status Retrieves the status of the sound buffer. Inherited from Buffer.
检索或设置的声音缓冲区的状态
Volume Retrieves or sets the attenuation of the sound. Inherited from Buffer.
检索或设置声音的衰减。
WritePosition Retrieves the position of the write cursor in the sound buffer. Inherited from Buffer.
检索或设置write cursor的位置在sound buffer中

时间: 2024-07-28 17:57:10

DirectSound学习(三)--类、方法、属性翻译的相关文章

PHP判断{函数/类/方法/属性}是否存在

1.php判断系统函数或自己写的函数是否存在 bool function_exists ( string $function_name ) 判断函数是否已经定义,例如: if(function_exists('curl_init')){ curl_init(); }else{ echo 'not function curl_init'; } 2.php判断类是否存在 bool class_exists ( string $class_name [, bool $autoload = true ]

TypeScript 学习三 类

1,类: 类是TypeScript的核心,大部分代码都是写在类里面: 声明:class 类名{  属性: 方法(){}:} 注意:类名首字母同样大写,但是方法不需要表明类型,直接写方法名加()即可:属性也不要声明类型:直接写属性名即可: 但是可以加上访问控制符public(类外类内都可访问),protected(类内和子类里可访问),private(类内访问): 实例化:利用new关键字: 例: class Person{ name; eat(){ console.log("eating&quo

[ html canvas 绘制曲线三种方法 ] canvas绘图 绘制曲线三种方法属性实例演示

1 <!DOCTYPE html> 2 <html lang='zh-cn'> 3 <head> 4 <title>Insert you title</title> 5 <meta name='description' content='this is my page'> 6 <meta name='keywords' content='keyword1,keyword2,keyword3'> 7 <meta htt

UWP深入学习三:依赖属性、附加属性和数据绑定

Dependency properties overview Custom dependency properties Attached properties overview Custom attached properties Quickstart: Data binding to controls Data binding overview (XAML) 使用代码创建绑定 你还可以使用规程代码而不是 XAML 来将 UI 元素连接到数据.若要执行此操作,先创建新 Binding 对象,设置

WPF prism 类、属性和方法的导入和导出

学习Prism一定要掌握依赖注入的应用,只有了解了Prism的依赖注入才能更好的使用Prism提升应用开发的架构. 首先说明Prism依赖注入有两种方式及MEF和Unity ,在Prism中是两个没有关联的dll.我倾向于使用MEF,下面学习下MEF在Silverlight中的具体实现.先看MEF实现图示 1.Catalog(目录):为了发现可用于组合容器的部件,组合容器将使用“Catalog”.目录是一个对象,通过它发现可用部件,MEF 提供了用于从提供的类型.程序集或磁盘路径创建Catalo

Javascript定义类(class)的三种方法

注:本文转自阮一峰,觉得此篇文章对我对大家有帮助,因此转过来. 将近20年前,Javascript诞生的时候,只是一种简单的网页脚本语言.如果你忘了填写用户名,它就跳出一个警告. 如今,它变得几乎无所不能,从前端到后端,有着各种匪夷所思的用途.程序员用它完成越来越庞大的项目.Javascript代码的复杂度也直线上升.单个网页包含10000行Javascript代码,早就司空见惯.2010年,一个工程师透露,Gmail的代码长度是443000行! 编写和维护如此复杂的代码,必须使用模块化策略.目

ibernate学习笔记5---实体类或属性名与数据库关键字冲突、hql命名参数、hql实现通用分页

一.实体类或属性名与数据库关键字冲突问题1.实体类名与数据库中的关键字冲突比如:实体表User与oracle中的系统表冲突解决方式1:在xml中添加table属性,指定表名,使其不与name默认相等 [html] view plaincopyprint? <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hiber

Python学习笔记总结(三)类

一.类简单介绍 1.介绍 类是Python面向对象程序设计(OOP)的主要工具,类建立使用class语句,通过class定义的对象. 类和模块的差异,类是语句,模块是文件. 类和实例 实例:代表程序领域中具体的元素. 类是生产实例的工厂,实例就像带有“数据"的记录,而类是处理这些记录的“程序”. 类是实例工程,类的属性提供行为(数据以及函数[方法]),所有从类产生的实例都继承该类的属性. 类的一个实例可以通过:实例.属性,实例.方法,获得类的属性和方法调用.类支持继承,当我们对class语句产生

关于对象、类、属性和方法的理解

文章开头申明:半路出家的野路子,可能个人理解有所欠缺,希望不吝赐教. 在初步学习java的过程中,往往都是绕不开面向对象的思想,说到对象或许挺多初学者和我一样只是听说过一个"万物皆对象"的说法,简单的记下对象包含属性和方法,然而实际使用的过程中往往有忽略这些东西,也就是犯浑了.个人的理解是希望将对象.类.属性和方法用一个例子来简单说明. 打个比方说我到商场买手机这个例子吧.我到了商场买手机,第一步自然就是向售货员提出我的要求:如手机大小.CPU.内存等等(属性),要求能拍照打电话首发短

iOS学习笔记43-Swift(三)类

一.Swift的类class 作为一门面向对象语言,类也是Swift的非常重要的类型,我们先来看下一个简单的类 //Swift中一个类可以不继承于任何其他基类,那么此类本身就是一个基类 class Person { //定义属性 var name:String var height = 0.0 //构造器方法,注意如果不编写构造方法默认会自动创建一个无参构造方法 init(name:String){ self.name = name } //析构器方法,在对象被释放时调用,类似于ObjC的dea