locked
Where is the Ring Tone path RRS feed

  • Question

  • Hi all ....

    I need to know how to retrieve the audio file path the system play as a ring tone .

    Many thanks in advance
    Interisted in windows system upgrade
    Thursday, March 18, 2010 6:58 PM

Answers

All replies

  • Hi,

    I believe this information is stored in the registry of the device.

    The following may help you :-

    http://wiki.modaco.com/index.php/Windows_Mobile_5_Registry_Tweaks

    Hope this helps.

    Paul Diston
    http://www.smartmobiledevice.co.uk/
    Thursday, March 18, 2010 7:05 PM
  • Many thanks Paul for your help , I'v already thought about this idea and start to search for the value into the registery , but I prefer to keep this as a last resort if I didn't find any API or free

    3rd library ( OpenNetCF ) to do the nasty job .

    I'd like if you can help me more about this topic .
    Interisted in windows system upgrade
    Thursday, March 18, 2010 7:18 PM
  • For sorry ... I tried to find out the place for the choosen ring tone , but I couldn't

    I think I'm gonna need more help now !!!


    Many thanks in advance.
    Interisted in windows system upgrade
    Thursday, March 18, 2010 7:48 PM
  • hello, ashraf 

    I think you can copy ”.wav””.mp3” to ”My Device”->”Application Data” ->”Sounds”. They will be recognize as ring tone files.

    For more information, please refer to SDK samples:

    Folder : \Common\CS\RingtoneManager

    Ring Tone Manager is an application that scans the device for audio files. It also lets you copy those files to a directory where they will be recognize as a ring tone file.


    施炯
    Friday, March 19, 2010 2:38 AM
  • Many thanks dearsj001 for your help , it's really appreciated and helpfull .... But I need to know which Audio file the system uses it as a RingTone , And ofcourse its path.??

    And I'm looking for an API code or free 3rd party library , Not Register

    Values casue it maybe different from one device to another.


    Interisted in windows system upgrade

    Friday, March 19, 2010 8:26 AM
  • hello, ashraf 

    In Windows Mobile 6.0 Professional Device, we can find the file "Windows Mobile(Ring Tone)" under " \My Device\Windows". It is the default system ringtone file. We can also change the ringtone file under "Start->Settings->Sounds and Notifications->Notifications->Phone: Incoming Call".

    Hope this will help.


    施炯
    Saturday, March 20, 2010 1:17 PM
  • Hello , dearsj001 ... Many thanks for your help , but I'm asking about retreiving the audio file path of the currently selected ring tone  using VisualBasic.Net or C# , And I found a code that may do that but I couldn't fiugre out how :

     

    1 - How to get the Ring Tone path from SNDFILEINFO

    2- How to know if the ringer volume level

     

     

    Private Sub Test()
            Dim MyCurrentSound As SoundType
            Dim sfi As New SNDFILEINFO
            SndGetSound(SoundEvent.All, sfi)
            MyCurrentSound = sfi.sstType
        End Sub
    
        <DllImport("aygshell.dll", SetLastError:=True)> _
    Private Shared Function SndGetSound(ByVal seSoundEvent As SoundEvent, ByRef pSoundFileInfo As SNDFILEINFO) As UInteger
        End Function
        Private Structure SNDFILEINFO
            <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=260)> _
            Private szPathNameNative As String
            <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=260)> _
            Private szDisplayNameNative As String
            Public sstType As SoundType
        End Structure
    
        Public Enum SoundEvent
            All = 0
            RingLine1
            RingLine2
            KnownCallerLine1
            RoamingLine1
            RingVoip
        End Enum
    
        Enum SoundType
            [On] = 0
            File = 1
            Vibrate = 2
            None = 3
        End Enum
    

    3- Does this code run on WM Professional and Standard ???

    Many thanks in advance.

     

    Saturday, March 20, 2010 1:25 PM
  • The path of the current ringtone is stored in the registry:

    [HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0] Sound

    And the following key:

    [HKEY_CURRENT_USER\ControlPanel\Notifications\Phone] Wave

    You can use Registry.GetValue method to read the value from the registry.


    Please mark the post that helps you, and unmark that does not. This benefits our community.
    Monday, March 22, 2010 8:09 AM