C# ALert Tone Change - Windows Mobile Development and Hacking General

Does anyone have the code / API that will allow a program to change a message tone? (WM5)
I've searched about but haven't come up with anything yet.
The idea of the application is to look into a specific folder and read all .wav files in there, then every hour or so change the message tone to be a random file.
Thanks in advance

UPDATE
have changed the solution to overwrite a Tone already set up - message.wav - however I am having problems overwriting it.
It works OK if you go to Sounds and Alerts and choose message.wav and click OK, then run the application - it overwrites successfully, however after that it won't overwrite again
I think it may be due to some caching of the file to keep it in memory for some time, but haven't ascertained this properly yet
I'll let you know if I can find it then will post the application - my main purpose for it is to have a random TV (mostly blackadder) quote play when I get a message

I'm not sure, but to me it sounds like you may have to change the registry entries for the alerts.
HKCU\ControlPanel\Sounds\
And look for the one(s) that you need to change.
You can do that easily in C#, there are classes for accessing the registry and making the changes.
Sound files must be stored in the /Sounds folder.
Good luck

Related

PLAY MIDI ON UR XDA WITH FULL INSTRUMENTS

Now you can play the Polyphonic Ringtones on your XDA-I,Qtek1010,Siemens SX56,MDA-1 and T-Mobile with full instruments just by installing this file into your device :twisted: :
- MIDI56.sa.CAB
How to:
1- Copy the MIDI56.sa.CAB into your xda to any place you want then open the Explorer from your XDA,goto the folder you pasted the file in then click on the file after that get a *.mid file paste it into the \WINDOWS\RINGS,
Open the Phone from Settings and select the midi file you want it to be as your ringtone.
2- For whom the ringtone still doesn't work at all you just neet to extract the file >>CameraRC132_WWE_1.5.sa.zip<< and copy the cab file to your device and install it. Get the file from :
http://forum.xda-developers.com/viewtopic.php?t=6337&highlight=
Ps: My O/S is WM2003. I didn't test it on WM2002 if someone will just post here the result.
Enjoy my friends
We need to see the code can you pleas give use the code
Thanks
wwb95 said:
We need to see the code can you pleas give use the code
Thanks
Click to expand...
Click to collapse
I don't have the code that you're asking about bcz I didn't write it! I took this cab file from the Newest Himalaya's Extended-Rom :wink:
Your MIDI56.sa.cab has problems
Not that it matters that much to some folks...but in case you have an XDA-1 /MDA/PPC Phone Edition....I can confirm the following:
1. With WM2003, you will definitely need the Camera------.cab file installed, plus the MIDI56.sa. Mind you, you will have to install the MIDI56.sa file first, and then install the Camera------.cab
2. It will use up about 600+ K of needless memory on your XDA-1 because obviously, we don't have camera's. So.....what're you to do ? Well, go to
\WINDOWS
and look for Camera.EXE ( approx 500+ K )
Then, what you can do is launch Album, and look again at the \WINDOWS directory...and you will see a bunch of bitmaps obviously ( among other things ). Now..what you're looking for is files dated from 8/20/2003 ( that's 20/8/2003, for you folks EAST of the Atlantic ). Primarily they're bitmaps that were used by the Camera application. They add up to about 50-60 K. There's probably more files associated with the Camera.exe application that you won't need, plus any references in the PPC's registry will probably need to be ferreted out.
But...once you've done that, you've actually reclaimed approximately 800 K in space. Which on a 32MB unit, is a fair bit of memory.
Enjoy !
Marcelo
Re: Your MIDI56.sa.cab has problems
marcelol said:
Not that it matters that much to some folks...but in case you have an XDA-1 /MDA/PPC Phone Edition....I can confirm the following:
1. With WM2003, you will definitely need the Camera------.cab file installed, plus the MIDI56.sa. Mind you, you will have to install the MIDI56.sa file first, and then install the Camera------.cab
2. It will use up about 600+ K of needless memory on your XDA-1 because obviously, we don't have camera's. So.....what're you to do ? Well, go to
\WINDOWS
and look for Camera.EXE ( approx 500+ K )
Then, what you can do is launch Album, and look again at the \WINDOWS directory...and you will see a bunch of bitmaps obviously ( among other things ). Now..what you're looking for is files dated from 8/20/2003 ( that's 20/8/2003, for you folks EAST of the Atlantic ). Primarily they're bitmaps that were used by the Camera application. They add up to about 50-60 K. There's probably more files associated with the Camera.exe application that you won't need, plus any references in the PPC's registry will probably need to be ferreted out.
But...once you've done that, you've actually reclaimed approximately 800 K in space. Which on a 32MB unit, is a fair bit of memory.
Enjoy !
Marcelo
Click to expand...
Click to collapse
Marcelo,
I updated the installation instructions,you needed more to read about it.
Mind you, it doesn't matter what you install first cos I had the camera and album files in ppc b4 the midi cab file so it's ok.
Actually it's taking more than you are claiming, since those files installed in the \WINDOWS you can move them to "\Storage card\Album\Album.exe" "\Storage card\Camera\Camera.exe" like I did and gain back the used space , there's also a help file related to the camera it's about 56 kb you could remove it from "\WINDOWS" plus the little bitmaps. Thus you can as well fix the path in the registry for the files associations + making new shortcuts for the Album.exe,Camera.exe and by replacing them on the old ones.
Excellent !!!
I have to remind people that you MUST be careful when deleting the little bitmaps...look at them inside of Album first before deleting anything.
I had to reinstall my GPRS Monitor application because I deleted one of it's bitmaps by mistake....word to the wise !!!
Also I found TONS for MIDI files ( amateur ones ) to use as ringtones....,now if there were a way to make the ringtone directory point to my storage card, that would be great !!
Here's the link
http://www.ifnimidi.com/
TIPS
marcelol said:
I have to remind people that you MUST be careful when deleting the little bitmaps...look at them inside of Album first before deleting anything.
I had to reinstall my GPRS Monitor application because I deleted one of it's bitmaps by mistake....word to the wise !!!
Also I found TONS for MIDI files ( amateur ones ) to use as ringtones....,now if there were a way to make the ringtone directory point to my storage card, that would be great !!
Here's the link
http://www.ifnimidi.com/
Click to expand...
Click to collapse
Marcelo,
Moving the ringtones to the Storage card that was my other issue since a long time. I managed a way to do that it. Well for the first try it was successful but when the ppc turns it self off and some one calls you you’d hear the "windows default" ring and it remains whether you selects another ringtone. I kept a backup up on my registry to restore it back to the last status.
So if you like to share me your assistance I'd be grateful.
I'll give you tips of doing that and the project from here it starts…
------------------------------------------------------------------------------------
P.S: I recommend a backup on the registry b4 applying those tips
===============================================
1- (Looping Ringtones)
This tweak works perfectly you should apply it to your ppc's:
While playing a wav or midi or a wma as the ringtone the phone has a delay of 3 seconds before repeating, now this is really annoying if you've just created that great wav,wma ringtone, spent time making it loop properly in sound editor or whatever, and then the ppc does the silly delay, well, here’s the fix...
Open the registry editor:
HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0
Select 'Values'
And modify 'Script' by removing the w3 (eg. change 'av0pw3r' to 'av0pr')
"w3" stands for "Wait 3 seconds" you can make it "w1" or "w4" or remove to make the ringtone loops
===============================================
This tweak works for the first time you do it but when the ppc turn it self off the ringtone you selected won't play again :S be noticed.
2-Ringtones on SD/MMC Card
Open the registry editor:
HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0
Select 'Values'
Select 'Sound' and change the Value Data: \Storage Card\path to wav\wavname (eg. \Storage Card\Ringtones\mytone.wav)
We need here more try about this tweak and good ways to fix so ppl let’s do some tests
===============================================
This is the registry key where all ring tones s/w is playing whenever it comes to customizing a phone ring tone ... including PZP
and that's why all these s/w keeps a "live" component in the back ground to override what Windows is updating each time.
So, PZP was designed as today plugin, so Windows will force it to update the ring tones with each system referesh ... other s/w may keep a background process DLL running or to reconnect cprog.exe to their DLL ... or even to trap the system events to cprog.exe and redirect them to their handler.
So, I think (I might be wrong too ) the trick is to build a live demon to keep updating this registry key.
Necessary Files
I've been able to cut the necessary files for polyphonic ringtones down to ~570KB. Keep in mind I did this on a device with a ROM that was already cooked with supposed "support" for polyphonic ringtones, so there may be other files it is relying on. At any rate, the kitchens need to be updated with these files, because it doesn't work as-is.
There also may be ways to trim even more down, but this is what I have after many hard resets and adding/deleting files one by one. Hope it helps.
Shawn

More Sounds. Any ideas?

I want more sounds on my device much like my PC.
I want a different sound for:
MSN contact online
MSN Paging Me
Calander reminders
Oulook eMail notification
XpressMail eMail notification
SMS Messages notification
And probably others later
Anyone have any ideas as to registry hacks to add sounds for items that use the default sounds and how to change them?
Raptor
you should store any sound media files in MyDocument folder and go directly to Setting-Personal-Sounds&Notifications to set them as you need.
Don't know if you have been to Sounds & Notifications lately, there is a very minimal selection of items to apply sounds too.
Raptor
Don't know if you have been to Sounds & Notifications lately, there is a very minimal selection of items to apply sounds too.
Raptor
I use my SD card for all sounds.
First if you create a My Documents folder on the SD card and dump wav files in there, the Phone App will look in that directory on your SD card and you can choose ringtones without doing anything.
The only directory that I found that Sounds and Notifications picks up is Windows. You can dump WAV files in the Windows directory and it will pick them up under Sounds and Notifications.
For the sounds and notifications though it does not automatically pick up any directory except for Windows folder. (I think. I haven't found any other directories that it picks up. I tried putting WAVs everywhere and unlike for Ringtones the only directory that works is Windows)
Since I have a bunch of WAVs I just use my SD card and I would rather not clutter up my Windows directory or use up the space on my phone.
So what I have to is this.
First go to sounds and notifications and set your sounds and notifications. Just choose whatever sound is available. (Doesn't matter to what)
Then use a registry editor and go to
HKEY_CURRENT_USER\ControlPanel\Notifications
There are a bunch of subkeys and each pertain to an event. For each subkey look at the (Default) Value and that will tell you for which event that key is for. i.e. for new e-mail the value is "Messaging: New e-mail message"
Then just edit the "Wave" value and set it to your wav file. Do not use the extension though. If your wave file is example.wave then just put in example.
The path I use for my notifications is the following value:
\Storage Card\My Documents\example
Assuming that there is an example.wav in the above directory. Obviously just change the above path to wherever your wav file is. I have not tried using any other sounds other than wav files so I don't know if you can use mp3's or mid or other sound files.
This at least works for the default notifications. I don't know how to add new sound events for the examples you were giving.
NOTE
If you set these registry settings try not to go back to Sounds and Notifications or you will lose the settings. Then you have to set them again using the above steps. When you exit the Sounds and Notifications applet since it didn't recognize the paths you changed the wav files to, it will just put back the default like alarm1 or something so then you have to change them again.
Hope this helps
making custom ringers in sounds and notifications
wussup man.. maybe i can be of help.. i just got my vario a few days ago and ran into the same problem as you. i dont like the default sounds for the sounds and notifications too. what u need to do is if u wanna add sounds to any of those, u need to make sure that your sounds are in WAV format. then they will show up in the list.. hope this helps.. good luck kid
Am I speaking Greek? :-(
But Seriously, maybe I am not communication properly. I want to add sound events such as when a new contact somes online from MSN or any other IM product, I want a unique sound. This is not currently an option in sounds and notifications, I want to add my own if anyone has any ideas on how to do this.
Raptor
Found this on MSDN:
http://msdn.microsoft.com/library/d...lui5/html/wce50conhidingsystemsoundevents.asp
I guess you would have to add the event directly into the registry. BTW, this is for CE5.0 not WM5.0 but should be something similar of which events might be available.
I found several notifications' keys in my registry that had no Default values (event name) nor Wave (name of sound file). For example when the battery is low it will play lowbatt.wav if it's available in Windows dir. But this low battery event does not show in Start>Settings>Personal tab>Sounds & Notifications>Notifications tab. To add it go to:
HKEY_CURRENT_USER\ControlPanel\Notifications\{A877D663-239C-47a7-9304-0D347F580408}\
Create a String value named "Default" and set the value to "Low battery warning". Then go to Start>Settings>Personal tab>Sounds & Notifications>Notifications tab, and there you'll be able to select "Low battery warning" and customize it.
Now if we could only find out what keys define the other extra events.
While we are at it, I found this. Apparently It is for changing the default tap click.
http://msdn.microsoft.com/library/d...tml/wce51conwaveformaudioregistrysettings.asp
And this:
Sounds (and soundevents) are all over the place.
So far as I know there are 4 places:
- 21 general sounds in HKLM\snd\ in a 21 line multiz string (possible to include paths) See previous post in thread.
- phone sound events in HKCU\Controlpanel\SoundCategories and Sounds
(don't have a phone so I cannot be for sure)
- System Notifications/warnings in HKCU\ControlPanel\Notifications
- Screen Taps & Hardware buttons in WAPEAPI.DLL, WAVE\100 to 103
where HW buttons (Loud/Soft) = 100 and 101
Screen taps (Loud/Soft) = 102 and 103
(see attached image)
The latter have to be transplanted with Resource Hacker. Dunno if you can overwrite the WAVEAPI.DLL in de \Windows folder. But it is worth a try.
EDIT: the waveapi.dll.0409.mui is used on my system which is overwritable ;O)
UPDATE: Works splendid. Very nice sound effects (using all above together) Laughing
ps: don't forget to keep a modified copy on your Memory card. After a hard reset the default waveapi.dll.0409.mui will return from ROM.
(or make a proper backup everytime you change something like I do)
Tip: use sndrec32.exe to edit you wav file and do wav conversion
Tip: if you overwrite a \window system file you can always delete it again and do a soft reset to get the original back.
Click to expand...
Click to collapse
from this thread:
http://forum.xda-developers.com/viewtopic.php?t=42022
Re: making custom ringers in sounds and notifications
inspired_708 said:
wussup man.. maybe i can be of help.. i just got my vario a few days ago and ran into the same problem as you. i dont like the default sounds for the sounds and notifications too. what u need to do is if u wanna add sounds to any of those, u need to make sure that your sounds are in WAV format. then they will show up in the list.. hope this helps.. good luck kid
Click to expand...
Click to collapse
Hi All my sounds are wav, but they still don't wanna play. I put them in the windows folder, but they don't play. All are 22000Khz 16 bit stereo max 120kb files. So nothing big. But can't make them to play, even if there are selected.
What should I do?
Thanks

QUESTION: Changing all system sounds..

I remember on Windows Mobile 2003/SE you could dump wav files into the/Windows directory on your pda, and re-direct the registry entries to these sounds from the old ones. It was possible to change all of the start menu sounds, default sounds, volume changing sounds and error/question sounds. These changes are completely seperate form the ones found in the "Sounds and Notifications" control panel applet too. I have tried this in WM5 on my HTC Wizard, but it doesn't seem to work anymore (not that I expected it to in all ohnesty).
Basically, i'm looking for a way to change ALL of the system sounds WITHOUT having to install other programs, as it used to be. If this is not possible then i'll just have to live with it, but this is the only problem preventing my Wizard from being totally flawless in every way...
I have included the old package I made with the files, and the registry entry that's needed (although I can't remember where it goes anymore), in case anyone with an oder PDA wants it...
Thanks in advance for any help anyone may give
Someone must have some idea how to do this... If it's not possible, please at least say so
i just added and changed some sounds on my htc 8125 wiz.
dump wav files in windows folder .
-Brian
but does this allow you to change the start menu sounds... as it doesn't allow me to... The files seem to be ignored, and the ones in the rom are used instead. I name the files the same (obviously), and try not to make them too large. They are encoded in the same format as the other sounds on the device, at the same freq and resolution... Yet they don't show up, even after a reset...
what keys do you change?
Maybe we can try/find out what's cookin'

MMF (SMAF) Filter - stumped.

I've been wanting to be able to play MMF ringtones on my phones without conversion.
I have made some progress, but am now stumped. They play, but they also cause the vibrator to run in sync with the music and I can't figure out how to turn it off!
Here's what I've done so far:
1. Downloaded registry from Samsung Blackjack SGH-i607 to identify files needed for MMF playback (BAEFilter.dll, BeatnikPlugin.dll).
2. Ran Dependency Walker to identify other necessary files needed (mobileBAE.dll).
3. Copied BAEFilter.dll, mobileBAE.dll, and BeatnikPlugin.dll to my devices (Tornado and Wizard).
4. Registered BAEFilter.dll and BeatnikPlugin.dll (mobileBAE is not registerable).
5. Now MMF files play, but vibrate!
BeatnikPlugin.dll, I'm not even sure what it's for. Maybe for that cool spectrum analyzer in Samsung's WMP theme? It doesn't need to be registered for MMF playback to work. Only BAEFilter.dll needs to be registered. Viewing MobileBAE.dll in text mode, I did find reference to another file, mobile_300_base.dls. I copied it over too. It didn't make any difference and appears to just contain EQ settings and such.
I have used UltraEdit32 and viewed the file in text mode to see if any registry entries might be able to disable the vibration. I couldn't find any. I copied every single registry entry from the Blackjack referring to BAEFilter.dll and BeatnikPlugin, as well as everything related to their CLSIDs. I also downloaded the contents of the Blackjack's Windows folder and examined the registry entries in the RGU files. I didn't miss a single one, but it still vibrates.
I'm stumped. The MMF ringtones vibrate on both my Wizard (WM6 PocketPC) and Tornado (WM5 Smartphone).
I'm not sure what else I can try...
Just a small question: what did you do to register the dlls?
I downloaded WM5_RegSvrCE.exe and ran in it from Resco Explorer. I think you need to use Resco because it lets you enter arguments.
I plan to see if I can make a CAB installer out of it in case anyone else is interested. If not, it'll at least make it a lot easier for me to install in my own devices.
I know a little more now than I did when I made the post:
BAEFilter.dll needs to be registered for MMF to work at all, and will allow WMP to play them.
BeatnikPlugin.dll needs to be registered for MMF to work as ringtones, notifications, or alarms (can't be used as alarm on PPC for some reason, but Smartphone works fine).
I did find a workaround for the vibrate, it involves changing the registry for:
[HKLM\Drivers\Builtin\NLed]
"Flags"=0
This killed the vibrate on both my Wizard and Tornado. Setting Order=0 to match the Samsung also worked on the Wizard, but not the Tornado (its Order was already 0). Unfortunately, it completely kills vibrate altogether. I seldom need vibrate mode so it's no big deal for me. I'm theorizing the Samsung does something fancy with vibrate mode so that the phone vibrates in sync with the ringtone, but I'm not sure.

[Q] sms alert tone Focus only

So i have the phone unlocked and custom ring tones and i also know the name of one of my ringtones i want to use as a text sound but they say there is no explorer for Samsung focus. If i know the name of the ringtone, is there anything i can do to use it? say changing something in the registry? the name is hooha! as the ringtone. thanks for all comments.
HKEY_CURRENT_USER\ControlPanel\Sounds\SMS\
Sound:string. The default on my phone is "\Windows\Alert-08.wma"
Changing this value should change the sound made on receiving SMS messages. If you have the ability to write multi-string values in the registry, you can also add entries which will show up in the GUI adding their filenames to
HKCU\ControlPanel\Sounds\
Notifications:Multi_String.
The system is a bit picky about the location of the sound file as well. Install directory of an app is a no go for example. Windir and My Ringtones are obviously whitelisted though.
So how would I know where my ringtone is located?
Sent from my SGH-i917 using Board Express
Is ther an explorer for the focus yet?
Sent from my SGH-i917 using Board Express
There's apparently an application capability manifest entry for installing ringtones, which I would guess gives access to the My Ringtones directory (although it could do something else like enable an API, or nothing at all). You could try using it.
You could also copy the file to the phone using Zune as just a music clip. Trying to find where it got put is non-trivial though; there's a small range of numbered folders it could end up in, and a range of numbered files under those folders. It might not work even if you got it right, too.
I've found the Alert sounds under HKCU\ControlPanel\Sounds\Notifications, but I can't add "Saywhat.wma" to Value Data, as in, I type it in and it won't let me save.
I'm guessing I need to:
1) Find where "saywhat.wma" is located
2) Somehow write it to Notifications
Any ideas? I added the file through Chevron's ringtone loader.
If you added it as a ringtone, the file is located at "\My Documents\My Ringtones\saywhat.wma" and you'll need that full value, with spaces but without the quotes (I believe, it might also work with them).
What's the problem when you try to save? Also, what registry editor are you using?
GoodDayToDie said:
If you added it as a ringtone, the file is located at "\My Documents\My Ringtones\saywhat.wma" and you'll need that full value, with spaces but without the quotes (I believe, it might also work with them).
What's the problem when you try to save? Also, what registry editor are you using?
Click to expand...
Click to collapse
I'm using http://forum.touchxperience.com/viewtopic.php?f=20&t=593.
I've entered "\My Documents\My Ringtones\Saywhat.wma" and "My Documents My Ringtones Saywhat.wma" and it always jumps back to the home screen when I press Save.
Verkunder said:
I'm using http://forum.touchxperience.com/viewtopic.php?f=20&t=593.
I've entered "\My Documents\My Ringtones\Saywhat.wma" and "My Documents My Ringtones Saywhat.wma" and it always jumps back to the home screen when I press Save.
Click to expand...
Click to collapse
Might just be a typo but you put a space between Ringtones and Saywhat.wma
jason.hamilton said:
Might just be a typo but you put a space between Ringtones and Saywhat.wma
Click to expand...
Click to collapse
So you're saying it should be "My Documents My RingtonesSaywhat.wma"?
i have also triedd and cant get it to work
well i noticed using advanced configurator you can select ring tones for sms but why dont any of the custom ring tones i added show up in the list?
i think the best way to make it work is to rename ur custom sms tone to alert-01 then copy it to windows directory using touchexplorer(if its cabable to do so )...
unfortunatlly touch explorer is not working on my phone to confirm if this will work or not
i don't think there is a working explorer for the Samsung Focus
Are custom alert tones DOA for non HTC devices? I've really gotten bummed having a cool ringtone and yet having a standard alert tone.
I have tried a few times to get this to work on my focus with 2 different registry editors and it fails everytime i try. Maybe im not entering the correct path as it seams because it never show up. With the registry edit from the touchexperience site, after i make the edit and select ok for it to complete the edit the app exits out and goes back to the home screen. I also have tried with advance explorer and it did not succeed. I wonder if we have the correct path selected to write to and the correct location to select the sound we are wanting, if we use the samsung registry " that is being used to debrand the device " to write the edit, if we can figure this out and make it happen? When i try to add the tone for sms using samsung registry i get this error: please specify a correct integer
Does integer mean the same thing as value?
i got this to work on my focus using the wp7root tools to modify the registry.
i changed [HKEY_current_user\ControlPanel\Sounds\SMS]
"Sound" = \My Documents\My Ringtones\whatever.wma
it works for sure for focus.
does anyone know the original value for:
HKCU\ControlPanel\Sounds\Notification
i want to switch back to the default value
How do I copy the tones to the Ringtone folder in the first place ??
You have to have an unlocked device and use one of the ringtone programs on this site to transfer to the folder.

Categories

Resources