volume

how to control volume with python3?

非 Y 不嫁゛ 提交于 2019-12-12 04:42:08
问题 I wanted to write an alarm program, for waking up in mornings. I want it to play sound as loud as possible, so it needs to raise up volume to 100%. I also asked how to change volume with python?. @macmoonshine suggest me to use 'AppleScript'. it was good and worked for me, but it works only on python2(error on python3) and(not sure) only works for apple. how can I write a program that can control volume in python3 without using AppleScript? I'd appreciate your help(; 来源: https://stackoverflow

How to make volume slider for AVPlayer in xcode for mac

强颜欢笑 提交于 2019-12-12 03:53:16
问题 so i have my simple code of my radio app: -(IBAction)europaPlus:(id)sender{ NSLog(@"EuropaPlus work"); if (clicked == 0) { clicked = 1; NSString *urlAddress = @"http://cast.europaplus.ua/europaplus.aac"; NSURL *urlStream = [NSURL URLWithString:urlAddress]; radioPlus = [[AVPlayer alloc] initWithURL:urlStream]; [radioPlus play];} else { NSLog(@"EuropaPlus not work"); [radioPlus release]; clicked = 0; } } Also i used AVPLAYER only for URL connect but how make volume control for AVPlayer in MAC

Volume control with Web Audio API

纵然是瞬间 提交于 2019-12-12 03:38:40
问题 I'm working on a simple project to create an instrument, using Web Audio API, and wrote the following snippet (you can press ' Q ' to play the note): var audio = new AudioContext(); var volume = 0; var attack = 1; var release = 1; var carrier = audio.createOscillator(); carrier.frequency.value = 440.00; carrier.type = "sine"; carrier.start(); var carrier_volume = audio.createGain(); carrier_volume.gain.linearRampToValueAtTime(volume, 0); carrier.connect(carrier_volume); carrier_volume.connect

PHP::Highcharts candlestick volume and rsi data missing

那年仲夏 提交于 2019-12-12 02:53:32
问题 i am working highcharts candlestick with volume and rsi indication. when i put indicators.js in my page, lot of data missing in chart but it showing on volume. If suppose i remove indicators.js , all data perfectly showed on both chart and volume but rsi indicator not working. I want to show all data on both chart and volume with rsi indication. data format - json [prepared dynamically from mysql and php] Anybody knows let me know. JS Fiddle Link [For Demo] <http://jsfiddle.net/pandymassblack

osascript set volume isn't working via ssh

假装没事ソ 提交于 2019-12-12 02:27:47
问题 here is my situation. User A is currently logged on Computer A . User B logs into Computer A via ssh. User B runs via terminal a osascript ( osascript -e 'set volume 0' ) here is my error log: Oct 20 13:25:17 osascript[29389] <Error>: Set a breakpoint at CGSLogError to catch errors as they are logged. Oct 20 13:25:17 osascript[29389] <Error>: This user is not allowed access to the window system right now. Oct 20 13:25:17 osascript[29389] <Warning>: CGSConnectionByID: 0 is not a valid

Volume Slider in Matlab GUI

眉间皱痕 提交于 2019-12-12 02:26:26
问题 Link of Previous Post: Matlab Questions about Audioplayer GUI I am trying to make a volume slider in Matlab... So currently what I have in mind from what I have searched is using handles variable to get the slider's value. After that, I am planning to have the variable multiply the (x,fs) in the audioplayer. My current code for the beginning of the handle is like this... handles.a = [] ; %I don't know what to put for this >.< handles.output = hObject; handles.myPlayer=[]; guidata(hObject,

Get system volume (Sound level) in linux using Python

我是研究僧i 提交于 2019-12-12 02:18:54
问题 I am using Fedora 16 and modifying a program in python 2.7. How do I get the systems volume (Sound level)? 回答1: For ALSA, use pyalsaaudio For Pulse, its a bit raw. There are ctype bindings 回答2: If you are using ALSA, you can run 'amixer' to dump the state of all volume controls. For PulseAudio, I believe 'pacmd dump' should get similar info. (see http://blog.waan.name/pulseaudio-setting-volume-from-command-line/ ) 来源: https://stackoverflow.com/questions/11553131/get-system-volume-sound-level

Setting up volume control vertical in video.js

泄露秘密 提交于 2019-12-12 00:55:51
问题 There i have been playing around with the HTML5 video.js video player component . And player is absolutely awesome and meet almost all my requirements . The only issue i have ran into is it has a horizontal volume control bar and i want to place the volume control bar vertical similar to what it sets in flash fall back mode . Any help regarding this would be really appreciated. Thanx 回答1: This worked for me vjs.ControlBar.prototype.options_ = { children: { 'volumeMenuButton': { 'volumeBar': {

Volume changes without creating notification for IAudioEndpointVolume

▼魔方 西西 提交于 2019-12-11 19:09:54
问题 I'm have written a C++ application that is running as a Windows service to limit the volume of a Windows 7 computer. The user can specify different rules for different days and times and the service will smoothly change the volume. To implement this I use the IAudioEndpointVolume interface. In general it works like intended... However, there exists a strange behavior I cannot explain yet. When switching users the volume suddenly drops but it does not generate a notification as one would

Calculate volume of hollow tilted cylinder inside cube, without a grid

三世轮回 提交于 2019-12-11 18:30:09
问题 I have a hollow cylinder with inner radius r1 and outer radius r2. This cylinder is tilted from the Z axis towards the X axis, then rotated around the Z axis and then translated along X and along Y. I also have a cube between a range of X and Y values. I then want to calculate how large a volume of the hollow cylinder is inside the cube. %set variables r1 = 0.9; r2 = 1.0; z1 =-1.0; z2 = 1.0; beta = pi/4; gamma = pi/8; %create inner surface [X,Y,Z] = cylinder(r1, 100); %outer surface [Xx,Yy,Zz