Related
Hi
I have a Himalaya XDAII device and I want to play a wave audio file when an incoming call arrives that does not replace the ringtone but plays with it. It plays but the volume of my playback is greatly decreased thet it is not heared at all.
What I want to do is to decrease the ringtone volume while I play my wave file, then increase it again when I finishes.
I have tried alot of thing and failed does any body have an idea.
:roll:
At last done it
:idea: :idea:
At last I done it, and as i suspected it uses undocumented API's. All you need to do is to load a DLL called "OSSVCS.DLL" from the system and then GetProcAddress of a method called "PlayEventSound", the prototype of this method is :
Code:
HRESULT PlayEventSoundT(LPCTSTR,int);
Then you need to setup your registry a bit.
1- Add a new sound category under the key
[HKCU\ControlPanel\SoundCategories] Create a new Key Named "MyCat" and setup its values as
[list:c16b5debce]
(Default) -> EMPTY
InitVol -> your category volume 0=Min 5=Max
AttenuationCategory-> 2
2- Add a new Sound under the key
[HKCU\ControlPanel\Sounds] Create a new key named "MySound" and setup its values as
(Default) -> EMPTY
Sound -> A string value containing the full path to your wave file
Category -> "MyCat" Note: without the quots
Script -> "apw2r"
[/list:u:c16b5debce]
After setting the registry this way you need to call the method PlayEventSound like this:
Code:
PlayEventSound(L"MySound",0);
Note: Your application must have a message queue so that the sound is played correctly
Enjoy :twisted:
To mmalek
How to stop sound after PlayEventSound if soud is loop
what does means second parameter in PlayEventSound
you stop sounds using
Code:
StopEventSounds(LPCTSTR strEventName)
And the second parameter is HWND handle to a callback window to recieve events.
mmalek said:
you stop sounds using
Code:
StopEventSounds(LPCTSTR strEventName)
And the second parameter is HWND handle to a callback window to recieve events.
Click to expand...
Click to collapse
Hi mmalek,
Can you tell me what is the strEventName, where does it come from, because if I use "Mysound" like in PlayEventSound, it doesn't work.
When you talk about a message queue, which messages should be handled and what params do they return?
Cheers,
.Fred
This is the name of the event you create in the registry keys I talked about.
Did you create the registry key before using it??
I do not remember the message and its params now but this is easily discoverable using any message spy.
mmalek said:
This is the name of the event you create in the registry keys I talked about.
Did you create the registry key before using it??
I do not remember the message and its params now but this is easily discoverable using any message spy.
Click to expand...
Click to collapse
So in your sample, it should be:
Code:
StopEventSounds(L"MySound");
Am I right?
Cheers,
.Fred
Yes it is
mmalek said:
Yes it is
Click to expand...
Click to collapse
Well I made a sample similar to yours, and I play a wma file. The problem is when I call StopEventSounds, nothing happens, the file is still playing. My test is made on the wm2005 emulator.
Cheers,
.Fred
dotfred said:
mmalek said:
Yes it is
Click to expand...
Click to collapse
Well I made a sample similar to yours, and I play a wma file. The problem is when I call StopEventSounds, nothing happens, the file is still playing. My test is made on the wm2005 emulator.
Cheers,
.Fred
Click to expand...
Click to collapse
Now it is working, my mistake and my apologies...
Cheers,
.Fred
How do you do this in VB NET?
After the upgrade, I noticed a drop in ringer volume! The funny thing is, when the ringer is set at max voume, it is softer than the Windows Media Player set at 100% volume. So, this is not the limitation of the speakers. Anyone knows how to fix this?
try
* audiostreem
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\WaveDev]
"AGC"=dword:00000001
kropotov said:
try
* audiostreem
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\WaveDev]
"AGC"=dword:00000001
Click to expand...
Click to collapse
Hi, Thanks for the reply! I know that tweaks the registry...how do I type that code in? I haven't done this before...sorry. Also, what does it do?
use Resco Explorer Registry plugin
When I try to use the sound equalizer it just says I have to connect a headset - but I have a BT headset connected!!!
Is there any registry hack to make it work with BT Headsets and not just usb ones?
Does anyone else have this problem?
We talk about HTC Audiobooster?
It only works with the HTC Kabel Headset! It doesnt work with Blue Tooth devices :->
NetrunnerAT said:
We talk about HTC Audiobooster?
It only works with the HTC Kabel Headset! It doesnt work with Blue Tooth devices :->
Click to expand...
Click to collapse
Well that sucks!
I've had the same problem - very irritating.
however, look up and download SRS WOW HD - install, reboot the phone.
The Audio Booster disappears from the HTC Music Player, and you have a settings option for the SRS WOW HD. It does take a bit of processor time, and a fair bit of tweaking of its options, but it does make the Dual sound quite nice.
Shame about the occasional "break" in the music though.
THis Programm work ONLY with the Kabel Headset!!!
clonmult said:
I've had the same problem - very irritating.
however, look up and download SRS WOW HD - install, reboot the phone.
The Audio Booster disappears from the HTC Music Player, and you have a settings option for the SRS WOW HD. It does take a bit of processor time, and a fair bit of tweaking of its options, but it does make the Dual sound quite nice.
Shame about the occasional "break" in the music though.
Click to expand...
Click to collapse
Does SRS WOW HD work with bluetooth headsets?
Yes it does, but you need Edit your Registry, too support your Blue Tooth driver.
Here a Copy from a Thread about this task:
That worked through BT headset it is necessary to copy all parameters from [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Wave Dev] in HKEY_LOCAL_MACHINE\Drivers\BuiltIn\BtA2dpSnd
Except for value of parameter "OldDriver", he should be such, as was "DLL"
For example:
Before
"DLL" = "bta2dp.dll"
After
"DLL" = "WOWHD_ARM_WCE_PPC2005_Driver.dll"
"OldDriver" = "bta2dp.dll"
http://forum.xda-developers.com/showthread.php?t=355913&page=3
http://forum.xda-developers.com/showthread.php?t=357071
To have real stereo with your bluetooth stereo headphone you have to change the following registry key:
HKLM\SOFTWARE\Microsoft\Bluetooth\A2DP\Settings
Change the UseJointStereo value 1 to 0.
The value 1 means dual mono, value 0 means stereo
Importent ... befor you edit ... you must 100% know what is your device blue tooth driver!!! different HTC Device ... different Drivers!
Thanks alot that worked great!
/Hass
hass said:
Thanks alot that worked great!
/Hass
Click to expand...
Click to collapse
I spoke too soon - I now have no sound during phone calls! I am right now removing the changes I made...
what stand in your registry??? what have you change???
NetrunnerAT said:
what stand in your registry??? what have you change???
Click to expand...
Click to collapse
That worked through BT headset it is necessary to copy all parameters from [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Wave Dev] in HKEY_LOCAL_MACHINE\Drivers\BuiltIn\BtA2dpSnd
Except for value of parameter "OldDriver", he should be such, as was "DLL"
For example:
Before
"DLL" = "bta2dp.dll"
After
"DLL" = "WOWHD_ARM_WCE_PPC2005_Driver.dll"
"OldDriver" = "bta2dp.dll"
http://forum.xda-developers.com/show...=355913&page=3
http://forum.xda-developers.com/showthread.php?t=357071
To have real stereo with your bluetooth stereo headphone you have to change the following registry key:
HKLM\SOFTWARE\Microsoft\Bluetooth\A2DP\Settings
Change the UseJointStereo value 1 to 0.
The value 1 means dual mono, value 0 means stereo
I added the information above and installed the driver. I am now restarting to see if that fixes otherwise I uninstall the drive and go back to the old one.
grrrr
you doesnt understand me ... what stand in the regkeys befor you edit the settings? have you restart your device after change?
Yes I have restarted and in the registry it said:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\BtA2dpSnd]
"Sysintr"=dword:00000019
"SPKVol_PhoneCall_02h_06h"=dword:00000003
"SPKVol_NotPhoneCall_02h_06h"=dword:00000000
"Priority256"=dword:00000095
"Order"=dword:0000000b
"MicGain"=dword:00000027
"Index"=dword:00000001
"HPVol_PhoneCall_04h"=dword:00000004
"GainADC_LoudSpkMIC_12h"=dword:00000037
"GainADC_HeadsetMIC_12h"=dword:0000002a
"GainADC_BluetoothMIC_12h"=dword:00000021
"GainADC_ReceiverMIC_12h"=dword:00000037
"Flags"=dword:00000000
"DACVol_0Ch"=dword:00000007
"3DEff"=dword:00000000
"AGC"=dword:00000000
"Treble"=dword:00000000
"Bass"=dword:00000000
"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"
"OldDriver"="bta2dp.dll"
"Dll"="WOWHD_ARM_WCE_PPC2005_Driver.dll"
"Prefix"="WAV"
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\WaveDev]
"Dll"="WOWHD_ARM_WCE_PPC2005_Driver.dll"
"OldDriver"="Wavedev.dll"
"Sysintr"=dword:00000019
"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"
"Bass"=dword:00000000
"Treble"=dword:00000000
"AGC"=dword:00000000
"MicGain"=dword:00000027
"3DEff"=dword:00000000
"GainADC_ReceiverMIC_12h"=dword:00000037
"GainADC_HeadsetMIC_12h"=dword:0000002a
"GainADC_LoudSpkMIC_12h"=dword:00000037
"GainADC_BluetoothMIC_12h"=dword:00000021
"HPVol_PhoneCall_04h"=dword:00000004
"SPKVol_PhoneCall_02h_06h"=dword:00000003
"SPKVol_NotPhoneCall_02h_06h"=dword:00000000
"DACVol_0Ch"=dword:00000007
"Flags"=dword:00000000
"Priority256"=dword:00000095
"Order"=dword:0000000b
"Index"=dword:00000001
"Prefix"="WAV"
I now did a hard resert but thanks!
/H
hass said:
I spoke too soon - I now have no sound during phone calls! I am right now removing the changes I made...
Click to expand...
Click to collapse
That happened to me too, needed a pesky hard reset. Can anyone explain the reg changes again?
this are the reg changes and it works! if its a big problem for the most guys, i can provide a modded version for Qualcomm Devices. i need only few min. to edit.
I did a hard reset to get my phone working again. I don't know what it was that stopped the sound on my phone but I just have to make do with standard instead
Stopped? You mean the little breaks?
Oh ... this isnt a SRS WOW problem! it is possible you tweak your device with some registry settings? Breaks in the Audiostream have many reasons. the most are ...
Buffer in the Blue Tooth Stack are to high
Buffer in the File System are to high and the MicroSD Card go in the deep power down mode (this problem can you have, if you here a very large file and a big part can stay in your ram!)
you switch to the next track (this is the most reason)
process task doesnt become enough resources (possible ... )
generel powermanagment problems
all this bracks are only timing problems of many parts in your device!!!
No, not the pauses issue that others have referred to - after installing SRS WOW and making the registry changes I had no sound at all during phone calls. Music worked fine but when I called someone or when they called me then I couldn't hear them and they couldn't hear me.
I had to hard reset to fix the problem.
/Hass
Did anybody succeeded with xt7500 + srs wow over bluetooth ?
at least tried myself and at the moment no progress.
Before reg keys copy BT worked well and connected with
headset. After keys copy ppc BT menu indicted that wireless stereo are'nt
avaliable.
Is it nescessary copy over also same named settings ? example
both folders have before copy same named settings, like index, etc.
Good comments appreciated.
Originally Posted by hass
I spoke too soon - I now have no sound during phone calls! I am right now removing the changes I made...
Click to expand...
Click to collapse
cojones said:
That happened to me too, needed a pesky hard reset. Can anyone explain the reg changes again?
Click to expand...
Click to collapse
If you added bluetooth support to SRS and lost sound (or downloaded a cab with bluetooth support builtin) you need to follow the earlier instruction warnings, namely:
Preserve your Index, Prefix, and OldDriver settings so that they match what was previously specified in your BTA2DPSND registry folder (with the contents of olddriver matching whatever was in driver).
Hello,
Does anyone know if there or how to fix the DFT WP7 HD2 volume control. I have the phone on 1 or 2 and it is still very loud. Love the DFT work. Not complaining just wondering if it can be fixed.
Tks,
CM
Confirmed. The phone is very loud even on 1 volume level.
Same problem here. Seems there a few little bugs with SD cards, wifi and sound but over all its an excellent first ROM. I'm sure over time these bugs will be fixed.
seem t-moblie HD2's suffer from solid message blocks and message text missing too
confirmed. hope they will come out with some solution! but since it's the first build, i do expect some bug will appear.
Use your Reg editor to change the MaxdBAtten value data for 45 to 70 and then reboot your phone.
[HKCU]ControlPanel\Volume
EDIT: Left out the MaxdBAtten
mickfarr said:
Use your Reg editor to change the value data for 45 to 70 and then reboot your phone.
[HKCU]ControlPanel\Volume
Click to expand...
Click to collapse
where can i get the Reg editor?
Reg editor
william31518 said:
where can i get the Reg editor?
Click to expand...
Click to collapse
I used this one:
http://forum.xda-developers.com/showthread.php?t=910149
aled99 said:
I used this one:
http://forum.xda-developers.com/showthread.php?t=910149
Click to expand...
Click to collapse
Same one I used.
Hi,
my value is -1674994647. Is that nomal?
william31518 said:
where can i get the Reg editor?
Click to expand...
Click to collapse
It seem like u not yet unlock (jailbreak) your HD2 WP7 yet, after unlock, u can install app in *.xap format. Pls refer:
http://forum.xda-developers.com/showthread.php?t=912218
under control panel / volume I get
-1288457421
do I change it to
-1288707421 ??
EDIT: found 45 in control panel / volume / and then MaxBAtten... is that the one???
@mike21
did you try it? is that the correct reg entry to change?
thanks.
^ yup
in control panel / volume / and then MaxBAtten
atleast works for me
mike21pr said:
under control panel / volume I get
-1288457421
do I change it to
-1288707421 ??
EDIT: found 45 in control panel / volume / and then MaxBAtten... is that the one???
Click to expand...
Click to collapse
Oops I left that bit out!! It is MaxdBAtten that you change from 45 to 70
Many thanks everyone, can confirm that this works. Only thing it hasn't improved is how loud zune is when playing music through phone speaker - anyone know the reg entry for this?
question: does it fix the sound quality???? i mean, being loud is one thing, but the sound sounds so horrible i cant stand it over 5 in volume... i compared and Android doesnt suffer this, so i doubt its a blown speaker...
mike21pr said:
question: does it fix the sound quality???? i mean, being loud is one thing, but the sound sounds so horrible i cant stand it over 5 in volume... i compared and Android doesnt suffer this, so i doubt its a blown speaker...
Click to expand...
Click to collapse
this is what i mean, the reg edit has improved sound balance overall, but playing zune though phone speaker over about 14ish on volume setting sounds distorted. i think its still too loud even though system volume is now better.
Pica_Man said:
this is what i mean, the reg edit has improved sound balance overall, but playing zune though phone speaker over about 14ish on volume setting sounds distorted. i think its still too loud even though system volume is now better.
Click to expand...
Click to collapse
thanx for the confirmation... this is the only issue keeping me from using it longer as a daily
I flashed Android just to see if it was me... it isnt
mickfarr said:
Oops I left that bit out!! It is MaxdBAtten that you change from 45 to 70
Click to expand...
Click to collapse
Will a higher value be less loud, for exemple will 80 be softer then 70. My volume is still loud at 70. Changing the value from 45 to 70 didn't make a noticeble difference.
Does anyone else noticed this ?
The Alarm sound is too loud and cant be changed using the main volume !
Any idea why its like that or any fix for it !
Install reg editor
[HKEY_CURRENT_USER\ControlPanel\Volume]
"MaxdBAtten"=dword:2D (2D = 45)
change the value from 45 to 70
It seems ChevronWP7 doesnt work anymore for me , is there anyother way to do it ?
I cant install anything on the phone other than MarketPlace apps
ChevronWP7 works for everyone, close all your dropbox, antivirus, itunes, firefox, iplayer etc...CNTRL ALT DEL windows task manager, kill selected programs.
after installing a reg editor, im glad my wp7 looks a bit more tinkerable
also theres some sort of hiss that apparently has been around since the high volume bug, but only noticed now when level 1 is much softer
this hiss reminds me of those cheap ass logitech speakers I have when theres no sound playing lol, i hope this can be fixed in the future...
THUDUK said:
Install reg editor
[HKEY_CURRENT_USER\ControlPanel\Volume]
"MaxdBAtten"=dword:2D (2D = 45)
change the value from 45 to 70
Click to expand...
Click to collapse
I have tried this and performed a reset and the alarm volume is still a lot louder than any other system sounds. Is there something that I'm missing? or another method?
Same problem...
I have the same issue.
Out of the box the the main volume for music, ring and in call volume can be controlled via the main control but the notification and alarm volume is very high and seamingly independant from the main volume level.
After tweaking the registry value:
HKEY_CURRENT_USER\ControlPanel\Volume\MaxdBAtten
... from 6 to 80 the overall system volume decreased including system notifications but the alarm sound is still much higher than all other levels. I never sleep through it anymore - which is a plus - but dropping it slightly would be nice.
Same thing here... I'm scared out off sleep That's not very plesent.
Any registry tweak for this situation?
For me this worked (for 50% sound volume):
HKCU\ControlPanel\SoundCategories\Alarm\InitVol = 50 (integer)
cardiolan said:
For me this worked (for 50% sound volume):
HKCU\ControlPanel\SoundCategories\Alarm\InitVol = 50 (integer)
Click to expand...
Click to collapse
Great registry tweak!
The loud alarm sound was the last really annoying bug in the first release of the DFT WP7 ROM.
okay so someone guide me plaese, i lovw WP7 but im currently on andriod cuz of the volume issue & the camera.
how do i adjust the super ultra loud volume?
and how do i fix the loud alarm?
guide...
Make sure your pc has Zune 4 and .netframework 4 installed (.net is needed to run chevron and "TomXAPdeployer")
1. unlock your handset with chevron.
2. Use an "TomXAPdeployer" to install a registry editor to your handset. It's available on XDA if you serach a bit (i've attached below -just remove the ".zip" extension at the end of the filename).
3. Make the following registry chage to reduce the violume of your notifications:
[HKEY_CURRENT_USER\ControlPanel\Volume]
"MaxdBAtten"=dword:2D (2D = 45)
change the value from 45 to 70
4. Create this registry entry to reduce the volume of the alram:
[HKCU\ControlPanel\SoundCategories\Alarm]
"InitVol = 50 (integer)"
You might need to reboot your phone just to tidy everything up.
The tweaks work well.
I did it the harder way? Went to marketplace and downloaded the Media Volume setting on the free trial. Works a treat for me.
Maybe I should try the easy way, of changing reg files tweeking things?? NOT.
Hmmm
I did looked at that App, as far as i can see it just chages the registry vlaues for you to suit certain profiles.
Seems like a nice app - but changing the reg values manually saves a few pence and avoids having to install another piece of software...
What ever way works best for you.
cardiolan said:
For me this worked (for 50% sound volume):
HKCU\ControlPanel\SoundCategories\Alarm\InitVol = 50 (integer)
Click to expand...
Click to collapse
This worked great for me, although i used (InitVol = 25) that made it quieter for to my liking. Thanks for the tip!
Is there any way to edit Mango Registry and adjust that effin Alarm Volume?
It's late now, need get up early tomo and goin back to WinMo cuz of that crap...
coderiter said:
This worked great for me, although i used (InitVol = 25) that made it quieter for to my liking. Thanks for the tip!
Click to expand...
Click to collapse
it's work for me too, i'm using mango 7.5.
thanks mate.
Am I reading this right that people are complaining the alarm is too loud? It's an alarm, it's supposed to be loud.