volume

Cannot set volume on BlackBerry Playbook

烈酒焚心 提交于 2019-12-06 22:37:01
问题 I have an issue in changing the volume of blackberry play book. First I am repacking my Android App to Palybook App. I need to change the volume of blackberry playbook using seekbar and in seeklistener I am setting the Audio manager volume. Here is the code: audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); seekbar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() { public void onStopTrackingTouch(SeekBar seekBar) { // TODO Auto-generated method stub } public void

文件系统之LVM 逻辑卷管理

女生的网名这么多〃 提交于 2019-12-06 16:28:11
1、 LVM介绍 LVM 是 Logical Volume Manager 的简称,中文就是逻辑卷管理。 物理卷(PV,Physical Volume):就是真正的物理硬盘或分区。 卷组(VG,Volume Group):将多个物理卷合起来就组成了卷组,组成同一个卷组的物理卷 可以是同一个硬盘的不同分区,也可以是不同硬盘上的不同分区。我们可以把卷组想象为一 个逻辑硬盘 逻辑卷(LV,Logical Volume):卷组是一个逻辑硬盘,硬盘必须分区之后才能使用,这个分区我们称作逻辑卷。逻辑卷可以格式化和写入数据。我们可以把逻辑卷想象成 为分区。 物理扩展(PE,Physical Extend):PE 是用来保存数据的最小单元,我们的数据实际上都 是写入 PE 当中,PE 的大小是可以配置的,默认是 4MB。 2、建立 LVM 的步骤 首先需要把物理硬盘分成分区,当然也可以是整块物理硬盘。 然后把物理分区建立成为物理卷(PV),也可以直接把整块硬盘都建立为物理卷。 接下来把物理卷整合成为卷组(VG)。卷组就已经可以动态的调整大小了,可以把物理分区加入卷组,也可以把物理分区从卷组中删除。 最后就是把卷组再划分成为逻辑卷(LV),当然逻辑卷也是可以直接调整大小的。我们说逻 辑卷可以想象成为分区,所以也需要格式化和挂载。 3、物理卷管理 1、分区 创建方式就是使用 fdisk 交互命令

Android setStreamVolume for STREAM_RING doesn't always work while RINGING

只谈情不闲聊 提交于 2019-12-06 13:34:07
I am trying to do this simple App that allows the phone to ring but not to play a sound when receiving notifications under Android 4 (ICS). In order to do that I set the ring/notification stream to 0 (mute). When receiving a call I set the ring volume to max (p.e. 7) and then, on Idle, I turn it back to 0 (mute). To do that I use this simple code. public class ReceiverClass extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if ("android.intent.action.PHONE_STATE".equals(intent.getAction())) { String state = intent.getStringExtra(TelephonyManager.EXTRA

Find volume of 3d peaks in matlab

一笑奈何 提交于 2019-12-06 13:22:21
right now I have a 3d scatter plot with peaks that I need to find the volumes for. My data is from an image, so the x- and y- values indicate the pixel positions on the xy-plane, and the z value is the pixel value for each pixel. Here's my scatter plot: scatter3(x,y,z,20,z,'filled') I am trying to find the "volume" of the peaks of the data, like drawn below: I've tried findpeaks() but it gives me many local maxima without the the two prominent peaks that I'm looking for. In addition, I'm really stuck on how to establish the "base" of my peaks, because my data is from a scatter plot. I've also

How do you get/set media volume (spotify) and TTS in Android?

旧城冷巷雨未停 提交于 2019-12-06 12:23:41
问题 Decrease the stream volume and Increase TTS volume at the same time I had this Android application that talk with TTS every time and uses streaming music (spotify). So, I need to decrease the volume and increase the TTS I use this code but this decrease the tts as well. AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); audioManager.setStreamVolume(AudioManager.STREAM_MUSIC,[int value],[if desired a flag]); Any way to decrease only spotify like stream music .

How do I amplify sounds by a specified number of decibels in AS3?

徘徊边缘 提交于 2019-12-06 08:16:01
A few days ago, this was my question, and I found the answer. Maybe this will help someone else. A. The first part of the problem: can you amplify sound using Flash? The AS3 documentation for SoundTransform says this about the volume attribute: "The volume, ranging from 0 (silent) to 1 (full volume). At face value, this means you can only make sounds quieter. In fact, if you supply a value greater than one (1.0), sounds will be amplified. You risk saturating the sound and getting poor quality, but you can do it, and for voice, you can get away with a lot. (Music is less forgiving, so

How to change volume with Python?

断了今生、忘了曾经 提交于 2019-12-06 05:50:03
I'm writing a program to wake me up mornings, but I want my program to play alarm sound as loud as its possible. so it needs to raise up volume to 100%. but I don't know how. I'm using python3 on macOS Sierra. You can control the volume of your computer with Applescript: set volume output volume 100 To execute Applescript from python you can use py-applescript which can be installed with sudo easy_install py-applescript . The following script will set the volume: import applescript applescript.AppleScript("set volume output volume 100").run() EDIT: For Python3.6 you can use osascript instead:

docker数据卷(Data Volumes)

青春壹個敷衍的年華 提交于 2019-12-06 05:12:11
Docker宿主机和容器之间文件拷贝docker copy 前言: Docker 数据管理 在生产环境中使用 Docker ,往往需要对数据进行持久化,或者需要在多个容器之间进行 数据共享,这必然涉及容器的数据管理操作 容器中的管理数据主要有两种方式: 数据卷 Data Volumes 容器内数据直接映射到本地主机环境; 数据卷容器(Data Volume Containers 使用特定容器维护数据卷 当然还有最原始的copy方式,这个也是管理数据的方式,但是基本不会用到; 最原始的 copy 方式管理数据: 宿主机文件 copy to 容器内 docker cp 需要拷贝的文件或者目录 容器名称:容器目录 实例: docker cp /liuwenwu/docker/ mycentos02:/liuww/softwar 容器内 copy to 宿主机 docker cp 容器名称:容器目录 宿主机目录 实例: docker cp mycentos02:liuww/softwar/docker/bbb.txt /liuwenwu/docker 数据卷 数据卷(Data Volumes) 数据卷是一个可供一个或多个容器使用的特殊目录,它将主机操作系统目录直接映射进容器, 它可以提供很多有用的特性: 1.数据卷 可以在容器之间共享和重用 2.对数据卷的修改会立马生效 3.对数据卷的更新

AVAudioRecorder normalize volume

会有一股神秘感。 提交于 2019-12-06 04:56:06
问题 I've got an app that records audio. I'm wondering how I can increase the gain. is there a way to normalize the audio or amplify it somehow? thanks, howie 回答1: Looks like I found a solution. According to the documentation the AVAudioPlayer volume can be between 0.0 and 1.0. Apparently it can be set to a value greater than 1.0. By increasing the volume I was able to achieve the same desired result. While it's not normalized, the gain is increased. 回答2: #import <AudioToolbox/AudioServices.h>

Audio level meter for NAudio recording

别来无恙 提交于 2019-12-06 04:10:38
I´m recording audio to a WAV file using NAudio library. I want to be able to update a ProgressBar to the value of audio level/volume as the sample data arrives. public WaveIn Recorder_NAudio; public WaveFileWriter Writer_NAudio; public void record() { Recorder_NAudio = new WaveIn(); Recorder_NAudio.WaveFormat = new NAudio.Wave.WaveFormat(sampleRate, 1); Writer_NAudio = new WaveFileWriter(File.Open(tempPath, FileMode.Create), Recorder_NAudio.WaveFormat); Recorder_NAudio.DataAvailable += new EventHandler<WaveInEventArgs>(Recorder2_DataAvailable); Recorder_NAudio.StartRecording(); } void