volume

how to adjust master volume in vista/xp

让人想犯罪 __ 提交于 2019-12-01 05:58:59
i want to adjust the volume programatically like Get/SetMasterVolume in vista and xp? using mmsystem unit? Sebastian Oliva Here's the implementation of a general purpose api for audio: MMDevApi http://social.msdn.microsoft.com/Forums/en/windowspro-audiodevelopment/thread/5ce74d5d-2b1e-4ca9-a8c9-2e27eb9ec058 and an example with a button unit Unit33; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, MMDevApi, ActiveX, StdCtrls; type TForm33 = class(TForm) Button1: TButton; procedure FormCreate(Sender: TObject); procedure Button1Click(Sender:

Volume of a 3D closed mesh car object

巧了我就是萌 提交于 2019-12-01 05:55:35
I have a 3D closed mesh car object having a surface made up triangles. I want to calculate its volume, center of volume and inertia tensor. Could you help me Regards. George For volume... For each triangular facet, lookup its corner points. Call 'em P,Q,R. Compute this quantity (I call it "partial volume") pv = PxQyRz + PyQzRx + PzQxRy - PxQzRy - PyQxRz - PzQyRx Add these together for all facets and divide by 6. Important! The P,Q,R for each facet must be arranged clockwise as seen from outside. (Or all counter-clockwise, as long as it's consistent for all facets.) If the mesh has any

iPhone SDK 4 - How to programmatically detect volume hardware button press?

人走茶凉 提交于 2019-12-01 05:51:05
How would you detect if the user presses the volume hardware buttons and prevent default behaviour? Thanks a lot. Matt S. Look at AVSystemController_SystemVolumeDidChangeNotification (or alternatively here ) 来源: https://stackoverflow.com/questions/3722239/iphone-sdk-4-how-to-programmatically-detect-volume-hardware-button-press

解析Linux中LVM与磁盘配额

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 05:08:53
LVM 逻辑卷管理 LVM 概述 LVM 是 Linux 操作系统中对磁盘分区进行管理的一种逻辑机制,它是建立在硬盘和分区之上、文件系统之下的一个逻辑层,在建立文件系统时屏蔽了下层的磁盘分区布局,因此能够在保持现有数据不变的情况下动态调整磁盘容量,从而增强磁盘管理的灵活性。 要建立 LVM 分区管理机制,首先,将普通分区或整个硬盘创建为物理卷;然后,将物理上比较分散的各物理卷的存储空间组成一个逻辑整体,即卷组;最后,基于卷组这个整体,分割出不同的数据存储空间,形成逻辑卷。逻辑卷才是最终用户可以格式化并挂载使用的存储单位。 1、PV(Physical Volume,物理卷) 物理卷是 LVM 机制的基本存储设备,通常对应为一个普通分区或整个硬盘,。创建物理卷时,会在分区或硬盘的头部创建一个保留区块,用于记录 LVM 的属性,并把存储空间分割成默认大小为 4MB 的基本单元 (Physical Extent,PE) ,从而构成物理卷。 对用于转换成物理卷的普通分区,建议先使用 fdisk 工具将分区类型的 ID 标记号改为 8e 。若是整块硬盘,可以将所有磁盘空间划分为一个主分区后再做相应调整。 2、VG(Volume Group,卷组) 由一个或多个物理卷组成一个整体,即称为卷组,在卷组中可以动态地添加或移除物理卷,许多个物理卷可以分别组成不同的卷组,卷组的名称由用户自行定义。 3

Changing ringer volume during ringing

安稳与你 提交于 2019-12-01 04:44:14
问题 I'd like to change the ringer volume during ringing. Code below sets it during ringing (it is changed in system settings) but it doesn't come to effect with actual ringing (only the next ring call will use new value). Can I force this changes to make them effect Immediately? AudioManager audio = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); audio.setStreamVolume(AudioManager.STREAM_RING, volume, AudioManager.FLAG_ALLOW_RINGER_MODES | AudioManager.FLAG_PLAY_SOUND); 回答1: After

iPhone SDK 4 - How to programmatically detect volume hardware button press?

可紊 提交于 2019-12-01 03:46:41
问题 How would you detect if the user presses the volume hardware buttons and prevent default behaviour? Thanks a lot. 回答1: Look at AVSystemController_SystemVolumeDidChangeNotification (or alternatively here) 来源: https://stackoverflow.com/questions/3722239/iphone-sdk-4-how-to-programmatically-detect-volume-hardware-button-press

how to adjust master volume in vista/xp

▼魔方 西西 提交于 2019-12-01 03:33:37
问题 i want to adjust the volume programatically like Get/SetMasterVolume in vista and xp? using mmsystem unit? 回答1: Here's the implementation of a general purpose api for audio: MMDevApi http://social.msdn.microsoft.com/Forums/en/windowspro-audiodevelopment/thread/5ce74d5d-2b1e-4ca9-a8c9-2e27eb9ec058 and an example with a button unit Unit33; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, MMDevApi, ActiveX, StdCtrls; type TForm33 = class(TForm)

WinForms Volume Slider/Trackbar User Control

谁说我不能喝 提交于 2019-12-01 03:10:38
问题 I'm looking for a trackbar-like user/custom control to use in my .NET 2.0 WinForms app. Note: I'm NOT asking how to control the volume in a WinForms app. Anyone knows of a nice looking custom painted slider/trackbar control that could be used in my app to let user set the volume? (such as the ones used in multimedia apps) Ideally, it should support vertical orientation. TIA, 回答1: There is an excellent C# tutorial on how to create your own custom trackbar over at CodeGuru: http://www.codeguru

Javascript to detect system's volume (sound) and audio jack plugged in

你。 提交于 2019-12-01 02:24:14
问题 HTML5 has an onboard volume detection. <video controls width="320" height="176" onvolumechange="alert('The volume has been changed')"> This is for the player only. Is it possible to detect volume from the system? Say a phone. Can I get volume readings of my phone from the mobile browser? Or can I use JS to detect if the audio jack is plugged in? Can Volume level be detected for audio out using GetUserMedia? 回答1: Short answer for this is no! This is how web-browsers have been made for a very

Reduce the volume of a Wav audio file using C

怎甘沉沦 提交于 2019-12-01 01:50:39
I am writing a C program for editing a Wav audio file. I have loaded all file datas in an array of unsigned integer values (UINT16_T). Now, i would like to reduce the volume of the file. I thought it was enough to decrease the value (of a certain percentage) of the single values. But if i do that, i obtain an audio file with noise (I think I understand is called "static" or "click noise") Why? Which is the right procedure? Thank You! This is the piece of code affected: FILE* fp; FILE* fp2; /*Size of my file*/ #define BUFFER_SIZE 28242852 /*Array with file data*/ unsigned char *buffer; /*Array