Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
vpreHoose
Old
#1  
Senior Member - OP
Thanks Meter 1
Posts: 100
Join Date: Jan 2003
Default Why doesn't this mute the incomming call ring?

After looking around I thought that this would stop the incomming call ring, but it doesn't.

Any suggestions please?

#include "StdAfx.h"
#include <Mmsystem.h>

int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
HWAVEOUT hwo;
MMRESULT result = 0;

static WAVEFORMATEX wmTemp;
wmTemp.wFormatTag = WAVE_FORMAT_PCM;
wmTemp.nChannels = 1;
wmTemp.nSamplesPerSec = 8000 * 1000;
wmTemp.wBitsPerSample = 8;
wmTemp.nBlockAlign = wmTemp.nChannels * wmTemp.wBitsPerSample / 8;
wmTemp.nAvgBytesPerSec = wmTemp.nSamplesPerSec * wmTemp.nBlockAlign;
wmTemp.cbSize = 0;

result = waveOutOpen(&hwo, (UINT) WAVE_MAPPER, &wmTemp, 0, 0, CALLBACK_NULL);
result = waveOutSetVolume(hwo, 0);

waveOutClose(hwo);

return 0;
}
 
vpreHoose
Old
#2  
Senior Member - OP
Thanks Meter 1
Posts: 100
Join Date: Jan 2003
It seems that the Phone application doesn't use wave audio to play the file (strange as the ring tone is a wav file), or it is played exclusivly, Synchronously.

Any ideas?
 
mmalek
Old
#3  
Junior Member
Thanks Meter 0
Posts: 9
Join Date: Aug 2005
Location: Nasr City
All you need is to change the value of the registry value:

[HKCU\ControlPanel\SoundCategories\Ring\InitVol]
0=Mute 5=MAx ring volume
Enjoy :twisted:
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...