Creates a new default sound test file and adds the net.java.sip.communicator.impl.neomedia.TestSoundFilename property to change the filename used to test notification and playback devices.

cusax-fix
Vincent Lucas 13 years ago
parent 84c75da219
commit 933a868a66

@ -23,3 +23,5 @@ CALL_SECURITY_ON=resources/sounds/zrtpSecure.wav
CALL_SECURITY_ERROR=resources/sounds/zrtpAlert.wav
WEBCAM_SNAPSHOT=resources/sounds/webcamSnapshot.wav
TEST_SOUND=resources/sounds/testSound.wav

Binary file not shown.

@ -89,6 +89,13 @@ public class MediaConfigurationImpl
private static final String AUDIO_SYSTEM_DISABLED_PROP
= "net.java.sip.communicator.impl.neomedia.audiosystem.DISABLED";
/**
* The name of the sound file used to test the playback and the notification
* devices.
*/
private static final String TEST_SOUND_FILENAME_PROP
= "net.java.sip.communicator.impl.neomedia.TestSoundFilename";
/**
* The thread which updates the capture device as selected by the user. This
* prevent the UI to lock while changing the device.
@ -1617,9 +1624,15 @@ public void actionPerformed(ActionEvent e)
{
AudioNotifierService audioNotifServ
= NeomediaActivator.getAudioNotifierService();
String testSoundFilename
= NeomediaActivator.getConfigurationService()
.getString(
TEST_SOUND_FILENAME_PROP,
NeomediaActivator.getResources().getSoundPath(
"TEST_SOUND")
);
SCAudioClip sound = audioNotifServ.createAudio(
NeomediaActivator.getResources().getSoundPath(
"INCOMING_FILE"),
testSoundFilename,
isPlaybackEvent);
sound.play();
}

Loading…
Cancel
Save