private int setupVoE() { // Create VoiceEngine // Error logging is done in native API wrapper viEAndroidJavaAPI.VoE_Create(ApplicationContext); // Initialize if (0 != viEAndroidJavaAPI.VoE_Init(enableTrace)) { Log.Debug(TAG, "VoE init failed"); return(-1); } // Suggest to use the voice call audio stream for hardware volume controls VolumeControlStream = Stream.VoiceCall; return(0); }