Question Regarding Ringtones - Windows Mobile Development and Hacking General

I was wondering if anyone could tell me how ringtones work on the phone devices. Specifically, I am wondering what could cause ringtones to stop functioning.
What's going on is that I've developed some software that is inadvertently blocking ringtones such that it takes a soft-reset to get them back. Even shutting down the program doesn't help. I've rewritten just about every line of code and I haven't been able to solve the issue.
I'm sure I could figure this out if the emulator supported ringtones (I don't have a phone device myself). but since it doesn't I'd really appreciate any help.
Thanks for your time.

read this like yesterday (responded to it too); not sure if it'll help you but it the chap seems to know how the ringers work. forgot to paste the threat address...but i do remember it's something like "mp3 as ringtone"...
cheers
-----------------------------------------
Dear,
Quote:
I have a XDA2 and want to use Pink Floyds Money as my ring tone. I have got this track on my SD card in a mp3 format but have not got a clue what to do. If anyone can help me I would be really gratefull. I will need step by step instructions. Email [email protected]
If you wanna be able to access and use music files (mp3 and wma format) located in your sd card as ringtones, you may also consider changing the registry setting. Here is the step by step advice
1. Install regedit in your device (in case you haven't had it yet)
2. Open the regedit and look for the following values
HEKY_CURRENT_USER/ControlPanel/SoundCategories/Ring
Then under Ring Folder -> tap Directory, you'll see that the default directory is set to be \Window\Ring. You can change that directory to your preference (e.g. \Storage Card\My Music\). Soft-reset the unit. At this stage, all music files in MP3 and WMA format can be accessed directly from the storage card
3. Go to Phone->Tools->Options->Ring tone, and select whatever song you prefer using a your ringer.
Note that evey time someone calls you, the device will locate the songs at the specified location (e.g. SD card) and hence the ability to play the ringer properly also depends on the speed at which the device and the SD card interact.
HTH,
Ken
--------------------------

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

Ring Tones on Storage Card

I have changed the Directory string in HKEY_CURRENT_USER\ControlPanel\SoundCategories\Ring to "\storage card\My Documents\Rings\"
and the phone now rings with the wav file in this directory on my storage card. Well some times it does. Other times it rings with Windows Default.wav (the DefaultRing String setting in the Ring file). Can I rename this string value (or delete it).
ps I know I'm playing with fire messing with the registry but we all have to learn somehow!
BTW Storage card gets turned off on low battery.
Most of the time the problem is due to the ringtone size
The problem you mentioned "ringtone at time goes back to default.wav" is likely due to the ringtone size. So far I haven't came across any workaround for that. The only recommendation I would think is, get a fast SD card or reduce your ringtone size.
Alternate chioce would be, install the "Big ROM" thing that's available on this forum. Then, download MTUX RingtoneX Version 2.1a (have to be version 2.1a!!!!) and set your ringtone folder to "Storage" instead of "Storage Card". Have fun.
cheers,
cyberjaya
Forgot to add...
What's the difference of using MTUX RingtoneX and changing the registry to "\storage card\My Documents\Rings\"?
Am not too sure if this happen for all XDA, irrelevance of which model it is. For mine case (Magician), the registry hack above will work. But if you look properly into your folder, you'll find a duplicate copy of ringtone files exists in "\windows\rings". It might be because I'm using MTUX all these while.
Had tried MTUX 2.1a version, now it won't replicate another copy of the ringtone files onto "\windows\rings". In other word, you save your storage space of the main memory.
Nope - don't have a duplicate copy in "windows\Rings". I've deleted everything from there. I will try a smaller file as a trial. The .wav file I'm using on my storage card (1.0 gb SanDisk Ultra II) is 478 kb. Like I said, sometimes the phone rings with this, sometimes with the default file.
Re: Most of the time the problem is due to the ringtone size
cyberjaya said:
The problem you mentioned "ringtone at time goes back to default.wav" is likely due to the ringtone size. So far I haven't came across any workaround for that. The only recommendation I would think is, get a fast SD card or reduce your ringtone size.
Alternate chioce would be, install the "Big ROM" thing that's available on this forum. Then, download MTUX RingtoneX Version 2.1a (have to be version 2.1a!!!!) and set your ringtone folder to "Storage" instead of "Storage Card". Have fun.
cheers,
cyberjaya
Click to expand...
Click to collapse
What's the Big ROM thing? Ta
Rick GM said:
I have changed the Directory string in HKEY_CURRENT_USER\ControlPanel\SoundCategories\Ring to "\storage card\My Documents\Rings\"
and the phone now rings with the wav file in this directory on my storage card. Well some times it does. Other times it rings with Windows Default.wav (the DefaultRing String setting in the Ring file). Can I rename this string value (or delete it).
ps I know I'm playing with fire messing with the registry but we all have to learn somehow!
Click to expand...
Click to collapse
I have the same problem, even with a 66X SD card. :?
The ringtone played when the screen was already on, but if the call woke the PDA, the DefaultRing played instead.
I've just edited all my MP3 ring tones down to 40 secs, set them to mono @ 64kbps. This seems to have improved things so the MP3 plays instead of the default.
Any solutions for this problem ?
Any solutions for this problem ?
Beonfocus wrote
Any solutions for this problem ?
Click to expand...
Click to collapse
Store the ring tone in memory - not the storage card
sd dont just get turned off when batt is low it gets turned off when the device is off
so when the device rings it dont have access to the sd card == no ring tone access
Solution !!!
IF you have big storage patch in your pocket, just transfer your ringtones
to STORAGE directory, i made it and it work very good.
i had the same problem and now it is work good !
thanks

Caller Ringotone n Picture is erratic....plz help

im in a problem wenever i assign ringtones or pictures to a specific caller ....windows default ringtone is played....but this problem occurs most of the times....but sometimes it does work...wat is d reason???.....
n plz giv me a registery tweak so that i can save my sms into my storage card [/b]
i also have this same problem too.
Anyone can help?
i think that you use rings saved in the Sd, try to save they in storage
Can you give me the default reg entries for use the ringtone from memory? I changed it to use SD but i haven't save it
You'll need to move your ringtones to the windows/rings directory...they do also run directly under windows/
NB. regarding the tones for sms/mms/mail, it is my experience that these run better from just windows/
Hope this helps...
I need to know only the registy entry, i already moved the files on win directory...
Hi,
the application uses the default sound when it fails to open the desired ring tone file.
The timeout for open a ring tone file seems to be very short (maybe to inform the user as quick as possible about an incomming call) so getting the file data just in time may fail sometimes especialy if the file is stored on a SD card because it takes a little more time to get access to the files on a SD card (compared to RAM) especialy immediately after switching on the device (in case of an incoming call and the device was not on before).
So it might be a good idea to keep assigned ring tones (or at least a copy of them) in RAM.
JH
Herian said:
I need to know only the registy entry, i already moved the files on win directory...
Click to expand...
Click to collapse
Search the registry for your SD card path (e.g. Storage Card\), and you should find it quickly.
joehorn said:
Hi,
the application uses the default sound when it fails to open the desired ring tone file.
The timeout for open a ring tone file seems to be very short (maybe to inform the user as quick as possible about an incomming call) so getting the file data just in time may fail sometimes especialy if the file is stored on a SD card because it takes a little more time to get access to the files on a SD card (compared to RAM) especialy immediately after switching on the device (in case of an incoming call and the device was not on before).
So it might be a good idea to keep assigned ring tones (or at least a copy of them) in RAM.
JH
Click to expand...
Click to collapse
Yeh, it's a pity it doesn't play the default ring until it has woken up. Then it could switch to the one on the SD card when it gains access.
Does anyone know if MTUX RingToneX works with ringtones on the SD card? So far I've edited all my MP3 ringtones down to 40 seconds, 64kbps so can fit loads in the /Storage/ folder. They take up about 300k each that way.

Switch Ringer Tone Directory?

Is it possible to switch, or have the option to select ring tones that within a directory on my SD card instead of in system memory?
Please advise, thanks!
Anyone on this? I remember it used to be possible on other HTC phones, I think with a registry entry, but I would like to avoid having the main memory filled with ringers!
I think you can just copy the ringtones to your sd card root and the ringtone selector will automatically pick up all the files...
I just used MP3 Clipper to play the file and saved it where is wants it. Then went to the ringtone selector and there is was.
Thanks guys, I figured out the solution. There are only two default areas that the HD2 will look for ring tones and system sounds (without a registry hack, which I do not have). The first location is in system memory, which is what I was trying to avoid by putting my new ring tones on the SD card...
All you need to do is put any new ring tones in the following directory:
\Storage Card\My Documents
They cannot be within a sub-directory of My Documents either, mind you, they must be right out in the main MY Documents directory, but then these sound files can be picked up for ring tones & system sounds anywhere in the HD2's settings. This saves your phone some internal memory, shoving it off the the almost limitless SD cards we can put in these bad boys!
I hope this helps some others here.
Definetly better then device storage so thx for the hint.

Music Tab library fix

Well a lot of people noticed a problem with HTC Music tab. Library shows not only music but ring tones and other sounds. One way to stop it is to hide offending folders. One problem with that is if you hide for example ring tone folder you can not select your ring tones as they are hidden as well.
What I did is as goes. I have music on SD card, also there is tomtom, copilot and some other apps. I have hidden all of the apps that might have sounds so they do not show up in library. Obviously left folder with music not hidden.
That will take care of SD card.
For My Device sounds do steps below:
1. Start from removing your card and then going to music tab so it rescans and states no music found. (Skip to step 3 if you are starting from clean rom)
2. Go to registry editor of your choice and navigate to:
HKEY_LOCAL_MACHINE\Software\HTC\AudioManager_Eng (for german it will be AudioManager_Ger)\Information
Delete all items in that folder. You will not be able to delete Information it self.
If you are on clean rom you will not even have that folder it is created 1st time when music tab finds music.
3. Navigate to:
HKEY_LOCAL_MACHINE\Software\HTC\AudioManager_Eng\Config
In there change:
"device_scan_path_path" from what ever there is to \Windows
"device_scan_path_path_0" from what ever there is to \Windows
"ring_tone_path" from what ever there is to \Windows
What this will do is exclude all files in windows folder. If you have any files in my documents they will show up. I assume if you just put "\" instead of "\Windows" it will exclude entire my device but did not test it.
4. Soft reset, insert your SD card and enjoy.
I have my mp3's on sd card: X:\music
Is it possible to set that only this folder is scanned?
"device_scan_path_path" from what ever there is to \Windows
"device_scan_path_path_0" from what ever there is to \Windows
"ring_tone_path" from what ever there is to \Windows
I am wondering if doing this on just the ring tone path will do... essentially excluding the whole windows folder?
One of these device scan path should be for the SD Card.... if so, it would be great cause then we can exclude the program files for stuff like games installed on the SD card...
eskasi said:
"device_scan_path_path" from what ever there is to \Windows
"device_scan_path_path_0" from what ever there is to \Windows
"ring_tone_path" from what ever there is to \Windows
I am wondering if doing this on just the ring tone path will do... essentially excluding the whole windows folder?
One of these device scan path should be for the SD Card.... if so, it would be great cause then we can exclude the program files for stuff like games installed on the SD card...
Click to expand...
Click to collapse
Did not work for me. I had to change all to windows. I am thinking that if I were to exclude entire my device by putting just \ it would also exclude storage card as that appears as one of folders.
On my sd card I have hidden tomtom and it's maps so no sounds from there show up.
Did not find anywhere option to only scan selected folder, there is only option to select what not to scan and you only have one entry.
Oh yes one more device scan path is my documents by default and folder to exclude is my documents\my ringtones yet all ringtones from windows folder where showing up. Obviously device scan path does not work exactly as expected.
Bence said:
I have my mp3's on sd card: X:\music
Is it possible to set that only this folder is scanned?
Click to expand...
Click to collapse
In short no, or not that I know off. HTC did it from cats end just like htc album folder. Instead of letting us select what folders to add in registry you have to edit what folders not to scan. However in album you can have more then one entry in music tab you can not.
I must add that since I edited that registry entry I have no ring tones at all in my music tab.
You are a star! Thank you for this... I can use this to sort out my wife's phone too!
Thanks for the easy to understand tutorial!
"device_scan_path_path" from what ever there is to \Windows
"device_scan_path_path_0" from what ever there is to \Windows
"ring_tone_path" from what ever there is to \Windows
Click to expand...
Click to collapse
It works for me but isnt the meaning of "device scan path" normally the path where music is stored?
Im just a bit confused about it.
Wouldnt it be enough to state the first link to sd card?
Correct me if im wrong but i understand that the first shortcut goes to the path where music should be searched in.
The second i understand as the path where NOT to search.
And the third exists just to make sure the ringtones arent added.
Just for the understanding for me.
It works like a charm tho. And thats most important part in here
dameon12 said:
It works for me but isnt the meaning of "device scan path" normally the path where music is stored?
Im just a bit confused about it.
Wouldnt it be enough to state the first link to sd card?
Correct me if im wrong but i understand that the first shortcut goes to the path where music should be searched in.
The second i understand as the path where NOT to search.
And the third exists just to make sure the ringtones arent added.
Just for the understanding for me.
It works like a charm tho. And thats most important part in here
Click to expand...
Click to collapse
I 100% agree with you it makes no sense what so ever. It seems that instead of dong it the normal way where you point what to scan they did it hte othe way around where you point what not to scan.

Categories

Resources