Try to build a QT sound to play ring wave file if available. Use the AU file as fallback.
git-svn-id: http://voip.null.ro/svn/yate@4326 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
d7c04400ee
commit
a1907fef5e
|
@ -6737,8 +6737,14 @@ bool DefaultLogic::initializedClient()
|
|||
setClientParam("callerid",Client::s_settings.getValue("default","callerid"),false,true);
|
||||
setClientParam("domain",Client::s_settings.getValue("default","domain"),false,true);
|
||||
// Create default ring sound
|
||||
String ring = cGen->getValue("ringinfile",Client::s_soundPath + "ring.au");
|
||||
ClientSound::build(Client::s_ringInName,ring);
|
||||
// Try to build native for wave file
|
||||
String ring = cGen->getValue("ringinfile",Client::s_soundPath + "ring.wav");
|
||||
bool wave = ring.endsWith(".wav");
|
||||
if (!(wave && Client::self()->createSound(Client::s_ringInName,ring))) {
|
||||
if (wave)
|
||||
ring = Client::s_soundPath + "ring.au";
|
||||
ClientSound::build(Client::s_ringInName,ring);
|
||||
}
|
||||
ring = cGen->getValue("ringoutfile",Client::s_soundPath + "tone.wav");
|
||||
Client::self()->createSound(Client::s_ringOutName,ring);
|
||||
|
||||
|
|
|
@ -170,6 +170,7 @@ Source: "..\conf.d\*.conf.sample"; DestDir: "{app}\conf.d"
|
|||
|
||||
Source: "..\share\help\*.yhlp"; DestDir: "{app}\share\help"; Components: client
|
||||
Source: "..\share\sounds\*.wav"; DestDir: "{app}\share\sounds"; Components: client
|
||||
Source: "..\share\sounds\*.au"; DestDir: "{app}\share\sounds"; Components: client
|
||||
Source: "..\conf.d\providers.conf.default"; DestName: "providers.conf"; DestDir: "{app}\conf.d"; Components: client
|
||||
Source: "..\share\skins\default\qt4client.rc"; DestDir: "{app}\share\skins\default"; Components: client\qt
|
||||
Source: "..\share\skins\default\*.ui"; DestDir: "{app}\share\skins\default"; Components: client\qt
|
||||
|
|
Loading…
Reference in New Issue