volume

HTML audio tag volume

风流意气都作罢 提交于 2019-11-27 23:19:29
问题 I embedded a background audio into my website which autoplays on visit. The source of the audio is a online stream hotlink. <audio autoplay> <source src="http://lel.com/link/to/stream.m3u"> </audio> I already managed to do that and it's working well. Now I want to turn down the volume of the stream because the audio should just stay in the background and entertain the visitors instead of giving them ear cancer due to loudness. I already searched the forums but I always found solutions for

change volume win32 c++

限于喜欢 提交于 2019-11-27 21:32:05
How would I go about changing the sound volume in c++ win32? Also how would I mute/unmute it? Thanks for the help! Clay Nichols Two options: There's an answer to that question here on SO (changing the master volume from C++, which also includes SetMute, etc.) Have you considered showing the Volume controls and letting the user? If so, I can post some code for that. (You basically just shell out to the volume control applet. Use the waveOutSetVolume API. Here's an example: DWORD dwVolume; if (waveOutGetVolume(NULL, &dwVolume) == MMSYSERR_NOERROR) waveOutSetVolume(NULL, 0); // mute volume //

iPhone Detect Volume Keys press.

拟墨画扇 提交于 2019-11-27 21:32:04
I need to detect when the user presses the hardware volume keys, (App Store safe approach) I have tried a number of things with no luck. Do you know how to implement such functionality? At present I am registering for notifications, however they don't seem to get called. Here's my code: AudioSessionInitialize(NULL, NULL, NULL, NULL); NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; [notificationCenter addObserver:self selector:@selector(volumeChanged:) name:@"AVSystemController_SystemVolumeDidChangeNotification" object:nil]; And the receiver method is: -(void

Android mute/unmute phone

我只是一个虾纸丫 提交于 2019-11-27 19:24:39
My goal is to support 2 operations: mute phone (possibly with vibrations enabled/disabled), so when a call or sms is received it won't make noise unmute phone and restore the volume to the state before muting phone How can I do this? What permissions are required in AndroidManifest? This is the permission for vibrate into the manifest file <uses-permission android:name="android.permission.VIBRATE" /> this is for to put the device in silent mode with vibrate AudioManager audioManager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); audioManager.setRingerMode(AudioManager.RINGER

How to set a path on host for a named volume in docker-compose.yml

拜拜、爱过 提交于 2019-11-27 17:56:56
Example below creates dbdata named volume and references it inside db service: version: '2' services: db: image: mysql volumes: - dbdata:/var/lib/mysql volumes: dbdata: driver: local (from https://stackoverflow.com/a/35675553/4291814 ) I can see the path for the volume defaults to: /var/lib/docker/volumes/ project_name _dbdata My question is how to configure the path on host for the dbdata volume. Christian Ulbrich With the local volume driver comes the ability to use arbitrary mounts; by using a bind mount you can achieve exactly this. For setting up a named volume that gets mounted into /srv

What is the purpose of VOLUME in Dockerfile

断了今生、忘了曾经 提交于 2019-11-27 17:56:20
I'm trying to go deeper in my understanding of Docker's volume, and I'm having an hard time to figure out the differences / use-case of: The docker volume create command The docker run -v /path:/host_path The VOLUME entry in the Dockerfile file I particularly don't understand what happens if you combine the VOLUME entry with the -v flag. If someone understood well, please explain me! VonC A volume is a persistent data stored in /var/lib/docker/volumes/... You can either declare it in a Dockerfile, which means each time a container is started from the image, the volume is created ( empty ),

EC2 Can't resize volume after increasing size

£可爱£侵袭症+ 提交于 2019-11-27 16:38:55
I have followed the steps for resizing an EC2 volume Stopped the instance Took a snapshot of the current volume Created a new volume out of the previous snapshot with a bigger size in the same region Deattached the old volume from the instance Attached the new volume to the instance at the same mount point Old volume was 5GB and the one I created is 100GB Now, when i restart the instance and run df -h I still see this Filesystem Size Used Avail Use% Mounted on /dev/xvde1 4.7G 3.5G 1021M 78% / tmpfs 296M 0 296M 0% /dev/shm This is what I get when running sudo resize2fs /dev/xvde1 The filesystem

docker数据卷挂载

柔情痞子 提交于 2019-11-27 16:35:46
docker数据卷挂载笔记 我们的服务运行时必不可少的会产生一些日志,或是我们需要把容器内的数据进行备份,甚至多个容器之间进行数据共享,这必然涉及容器的数据管理操作。 容器中管理数据主要有两种方式: 1. 数据卷 2. 数据卷容器 1. 数据卷 数据卷是一个可供容器使用的特殊目录,它绕过文件系统,可以提供很多有用的特性: 数据卷可以在容器之间共享和重用 对数据卷的修改会立马生效 对数据卷的更新,不会影响镜像 卷会一直存在,直到没有容器使用 2. 数据卷的创建,查看,删除 docker run --name testweb -d -p 92:80 -v testwebvloume:/usr/share/nginx/html/ nginx:v3 #利用nginx:v3镜像创建了一个名为testweb的容器,对外暴露的端口号是92,将/usr/share/nginx/html目录与数据卷testwebvloume 映射。 docker volume create volume_name #表示创建一个数据卷。 docker volume ls #列出数据卷列表 docker volume rm volume_name #删除指定数据卷 docker volume inspect volume_name #查看数据卷的详细信息 例如:docker volume inspect

IOS WebAudio only works on headphones

南楼画角 提交于 2019-11-27 14:14:05
问题 I've been running into an issue now for a while where on some ios devices my webaudio system only seems to work with headphones where as other devices (exact same os, model, etc) the audio plays perfectly fine through the speakers or headphones. I've searched for a solution to this but haven't found anything on this exact issue. The only thing I can think of is that maybe it's an audio channel issue or something. I'm stumped. Have any of you ran into this issue and or have any recommendations

Android: how to play music at maximum possible volume?

こ雲淡風輕ζ 提交于 2019-11-27 13:58:45
I know the question can be regarded as "politically incorrect", but I'm designing an app which "by design" must get the attention of people within the maximum possible distance range, otherwise it will not be used... :-) I'm currently using SoundManager class, and this is the code which plays my ogg clip: public void playSound(int index) { int streamVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); mSoundPool.play(mSoundPoolMap.get(index), streamVolume, streamVolume, 0, 0, 1.0f); } The problem is that the sound volume I get the clip played with appears to be dependent by