Are BackgroundAudioPlayer.Instance.Volume and the Volume n/30 that is displayed in the Universal Volume Control (mango only) connected?
I can set the BackgroundAudioPlayer.Instance.Volume value and whilst it does affect the Volume it does not change the n/30 figure in the UVC nor does it have the same level of control.
As an example setting BackgroundAudioPlayer.Instance.Volume to 1.0 (the max) is has a different level of sound when the UVC is 30/30 than when the UVC is 5/30.
What should I be setting in the app to mirror the UVC controls?
Can I request the UVC be displayed via code? (I realise it is displayed when u press the hardware volume buttons)
Pat
You can't affect the volume as displayed in the UVC. The phone's volume is up to the user to control.
The volume you can set for the BAP (and for MediaElement) is the relative volume within the app. In theory, setting the UVC volume to 30 and the BAP volume to 0.5 should be equivalent to setting the UVC volume to 15 and the BAP volume to 1.0.
Unless you want/need the volume of what you're playing via the BPA (or MediaElement) to be quieter relative to the other sounds on the phone always set the BAP volume to 1.0.
You control the relative volume of things within your app. The user controls the volume of the phone overall.
No, you can't trigger the UVC to be displayed from code.
Related
I use a cheap 55" 4K TV as an external monitor over HDMI (laptop screen is too small).
Most programs are all good, and this is like having 4 22" monitors on my desk so I can keep a lot of files open.
However, one program is a problem - when I join MS teams meetings, they are in a separate window as expected. However, the video window always opens at about 38 inches (diagonal) on my 55" monitor, so multiple times per day I have to resize and reposition at the start of a meeting.
There are no apparent settings in teams (the zoom setting has no effect on the size of the new video window). Teams does not save the size/position of the last video window from the last meeting.
Are there any other hidden settings, or maybe a registry key that defines either the absolute size of the new video window, or the percentage of the screen it should fill when opening?
Thank you!
i been trying to use via USB HUB "4 ports" 2 web cams and i get this msg on the notification bar telling me to disconnect one unused usb from the port because low driver resources, yet i only have one port on my windows surface pro2 and on that one usb i connected the usb hub and on that is where i plugged the 2 webcams to use in my pc, So whats up with that driver resource ? thats a first i see that
i also plan to run on this power usb hub 2 optical usb mouse so i will appreciate this information.
using Processing IDE i am specifying which cameras to use which i currently do with just one of these USB cams and the internal cam on my tablet and i get dual video feed from both cam using this lines of code
cam1 = new Capture(this, w, h, "USB2.0 Camera", fps);
cam2 = new Capture(this, w, h, "Microsoft LifeCam Front", fps);
cam1.start();
cam2.start();
and this works fine but when i specify
cam1 = new Capture(this, w, h, "USB2.0 Camera", fps);
cam2 = new Capture(this, w, h, "USB2.0 PC CAMERA", fps);
cam1.start();
cam2.start();
which im telling it those two cams are both USB use it the IDE find it just confirming it is there but only uses one and occasionally i get a driver resource pop up telling me to dissconect any usb im not using while i only have those 2 usb in the 4 usb power hub so im not sure what the issue is, further more if i use just one usb cam and a optical usb mouse and usb keyboard and a Arduino using 4 servos I GET NO ERRORS about drive resource pop ups so WHAT DA ##$%!!?
I have had the same issue on my pc runnig win10 with 4 industrial usb cams.
At the moment the first usb device is connected to the pc, operating system allocates a portion of the transferring width to the device according to the firmware data inside the device. So lets say up to 20% of your bandwidth has been occupied by the first webcam of surface. Even if you do not use the cam, the space has been already occupied. Now the second cam comes in the ring and lets say this one occupies 30%, and also the pens you mentioned, consider 10 percent per each of them. Machine has some internal universal elements such as touch, finger print, bluetooth etc, which are all under the universal category. So the wise operating system distinguishes that most of the bandwidth of the usb has been occupied and there exists a danger to insert a new bandwidth consuming device which might cause deficiencies for the previously connected devices, that is why it warn every once in a while.
The harsh condition would be like mine, by inserting 4 HD usb cams and losing the connection with one of the cams after some seconds where the pc suffers from running out of bandwidth. For laptops or surface there is no option to expand the bandwidth, but for pc you could add a usb slot in pcie.
Hope you will find this helpful.
I'm attempting to mute the mic on my Logitech C920 webcam (OSX 10.8.5), but both implementations that I have tried do not work 100%. I would really appreciate it if someone who has experience with Apple's CoreAudio could take a look.
Here is what I have tried:
Setting mute via AudioObjectSetPropertyData() using:
address.mScope = kAudioDevicePropertyScopeInput;
address.mElement = kAudioObjectPropertyElementMaster;
address.mSelector = kAudioDevicePropertyMute;
This works, I can successfully mute/unmute but eventually I am able to get into a state where the mic is no longer receiving audio. It seems to be triggered by switching the default input to the internal mic while the C920 is in the muted state and switching back to the C920 mic. The only way that I have found to get the C920 mic back into a good state is to pull the USB cable and plug it back in.
Setting the volume to 0.0f via AudioObjectSetPropertyData() using:
address.mScope = kAudioDevicePropertyScopeInput;
address.mElement = kAudioObjectPropertyElementMaster;
address.mSelector = kAudioDevicePropertyVolumeScalar;
This almost works. The OSX UI input volume slider moves all the way to the left, but the mic is still picking up a little bit of audio. Uhhhhggg so close!
Opening the "Audio MIDI setup" app shows the C920 mic. When the volume value is set to zero, the dB value is 20. When the volume value is set to 1, the db value is set to 50. This is different from the built in mic that looks like it has a dB range of -12 to 12. Not sure if this matters.
When setting mute or the volume, I've tried fetching the individual channels and setting them as well. Doesn't seem to have an impact. I think with both input devices setting the Master channel is working fine.
I was wondering if maybe this is a hardware issue. I should note that the Logitech C920 isn't officially supported on the Mac (although a ton of people use it). I'm able to control the internal mic without any issues. Hopefully I'm just overlooking something :-)
When setting volume kAudioDevicePropertyVolumeScalar to zero. You should also set mute to true using kAudioDevicePropertyMute. When adjusting volume of inputs, be careful to check the mute status.
For example:
Adjust input volume in system audio panel to 0
Adjust input volume using kAudioDevicePropertyVolumeScalar to 100
Look at the db indicator, it stay at zero but the slider is in 100. No sound from microphone can be captured. Use kAudioDevicePropertyMute to get mute value, we can get mute = 1
Conclusion:
There is a "Mute" status for the input in the system, but no shown in the audio setting panel. System will auto set mute to true when adjust volume to zero and disable mute when set volume larger than zero.
I wrote a custom Music player using the interface MediaPlayer and SongLibrary. However, when I try to change the volume of the music played, I cant hear the change in volume. I have used a slider as a volume control and wrote the following code to change the media volume:
The slider values are initialized as follows:
slider1.Minimum = 0; //maps to wp7 volume 0.0
slider1.Maximum = 10; //maps to wp7 colume 1.0
slider1.Value = 8; //maps to wp7 default volume 0.85
The volume change code is as follows:
private void slider1_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
MediaPlayer.Volume = (float)((slider1.Value)/10.0);
}
Even if I hardcode the volume to 0, I can hear the music.
This is tested on WP7 SDKv7.1
Is this a bug in the SDK?
It is my understanding that this is a hardware bug with HTC WP7 devices. Volume will work correctly in the emulator as well as non-HTC phones.
There's three things to keep in mind when trying using the MediaPlayer.Volume property:
It doesn't work if you play a song from zune (stored in the Musique & Videos hub of the phone). Only for your app's custom musics.
You have to set the Volume property after starting the music. It will be ignored if you do it before
There's a few known bugs on the emulator. When it doesn't work, always try once on the device to make sure
I am writing an application whose users will use ZoomText and a tablet PC. ZoomText is screen magnification software. However ZoomText has a bug that prevents tablet tracking from working correctly, meaning finger and pen interaction with the screen is incorrect. When you zoom in on a rectangle in the screen and tap on something, you are actually tapping on the absolute coordinates, as if ZoomText was not running.
I am trying to write a program that will correct this behavior. ZoomText has a COM API which allows me to know the zoom amount and location. This means that if I were able to get between ZoomText and the operating system, I could intercept the pen/touch input, translate the coordinates taking into account ZoomText's zoom and location, and then pass the input back to the operating system.
Where should I begin? I don't even know where to start looking for how to implement this.
I think the way to go about this is a low level mouse hook. Use SetWindowsHookEx with a hook type of WH_MOUSE_LL.