当前位置: 首页>>代码示例>>Java>>正文


Java Logging.e方法代码示例

本文整理汇总了Java中org.webrtc.Logging.e方法的典型用法代码示例。如果您正苦于以下问题:Java Logging.e方法的具体用法?Java Logging.e怎么用?Java Logging.e使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.webrtc.Logging的用法示例。


在下文中一共展示了Logging.e方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: stopPlayout

import org.webrtc.Logging; //导入方法依赖的package包/类
private boolean stopPlayout() {
  Logging.d(TAG, "stopPlayout");
  assertTrue(audioThread != null);
  logUnderrunCount();
  audioThread.stopThread();

  final Thread aThread = audioThread;
  audioThread = null;
  if (aThread != null) {
    Logging.d(TAG, "Stopping the AudioTrackThread...");
    aThread.interrupt();
    if (!ThreadUtils.joinUninterruptibly(aThread, AUDIO_TRACK_THREAD_JOIN_TIMEOUT_MS)) {
      Logging.e(TAG, "Join of AudioTrackThread timed out.");
    }
    Logging.d(TAG, "AudioTrackThread has now been stopped.");
  }

  releaseAudioResources();
  return true;
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:21,代码来源:WebRtcAudioTrack.java

示例2: setStreamVolume

import org.webrtc.Logging; //导入方法依赖的package包/类
private boolean setStreamVolume(int volume) {
  Logging.d(TAG, "setStreamVolume(" + volume + ")");
  assertTrue(audioManager != null);
  if (isVolumeFixed()) {
    Logging.e(TAG, "The device implements a fixed volume policy.");
    return false;
  }
  audioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, volume, 0);
  return true;
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:11,代码来源:WebRtcAudioTrack.java

示例3: enableBuiltInNS

import org.webrtc.Logging; //导入方法依赖的package包/类
private boolean enableBuiltInNS(boolean enable) {
  Logging.d(TAG, "enableBuiltInNS(" + enable + ')');
  if (effects == null) {
    Logging.e(TAG, "Built-in NS is not supported on this platform");
    return false;
  }
  return effects.setNS(enable);
}
 
开发者ID:lgyjg,项目名称:AndroidRTC,代码行数:9,代码来源:WebRtcAudioRecord.java

示例4: setAEC

import org.webrtc.Logging; //导入方法依赖的package包/类
public boolean setAEC(boolean enable) {
  Logging.d(TAG, "setAEC(" + enable + ")");
  if (!canUseAcousticEchoCanceler()) {
    Logging.w(TAG, "Platform AEC is not supported");
    shouldEnableAec = false;
    return false;
  }
  if (aec != null && (enable != shouldEnableAec)) {
    Logging.e(TAG, "Platform AEC state can't be modified while recording");
    return false;
  }
  shouldEnableAec = enable;
  return true;
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:15,代码来源:WebRtcAudioEffects.java

示例5: setNS

import org.webrtc.Logging; //导入方法依赖的package包/类
public boolean setNS(boolean enable) {
  Logging.d(TAG, "setNS(" + enable + ")");
  if (!canUseNoiseSuppressor()) {
    Logging.w(TAG, "Platform NS is not supported");
    shouldEnableNs = false;
    return false;
  }
  if (ns != null && (enable != shouldEnableNs)) {
    Logging.e(TAG, "Platform NS state can't be modified while recording");
    return false;
  }
  shouldEnableNs = enable;
  return true;
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:15,代码来源:WebRtcAudioEffects.java

示例6: enableBuiltInAEC

import org.webrtc.Logging; //导入方法依赖的package包/类
private boolean enableBuiltInAEC(boolean enable) {
  threadChecker.checkIsOnValidThread();
  Logging.d(TAG, "enableBuiltInAEC(" + enable + ')');
  if (effects == null) {
    Logging.e(TAG, "Built-in AEC is not supported on this platform");
    return false;
  }
  return effects.setAEC(enable);
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:10,代码来源:WebRtcAudioRecord.java

示例7: enableBuiltInNS

import org.webrtc.Logging; //导入方法依赖的package包/类
private boolean enableBuiltInNS(boolean enable) {
  threadChecker.checkIsOnValidThread();
  Logging.d(TAG, "enableBuiltInNS(" + enable + ')');
  if (effects == null) {
    Logging.e(TAG, "Built-in NS is not supported on this platform");
    return false;
  }
  return effects.setNS(enable);
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:10,代码来源:WebRtcAudioRecord.java

示例8: stopRecording

import org.webrtc.Logging; //导入方法依赖的package包/类
private boolean stopRecording() {
  threadChecker.checkIsOnValidThread();
  Logging.d(TAG, "stopRecording");
  assertTrue(audioThread != null);
  audioThread.stopThread();
  if (!ThreadUtils.joinUninterruptibly(audioThread, AUDIO_RECORD_THREAD_JOIN_TIMEOUT_MS)) {
    Logging.e(TAG, "Join of AudioRecordJavaThread timed out");
  }
  audioThread = null;
  if (effects != null) {
    effects.release();
  }
  releaseAudioResources();
  return true;
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:16,代码来源:WebRtcAudioRecord.java

示例9: reportWebRtcAudioRecordStartError

import org.webrtc.Logging; //导入方法依赖的package包/类
private void reportWebRtcAudioRecordStartError(
    AudioRecordStartErrorCode errorCode, String errorMessage) {
  Logging.e(TAG, "Start recording error: " + errorCode + ". " + errorMessage);
  if (errorCallback != null) {
    errorCallback.onWebRtcAudioRecordStartError(errorCode, errorMessage);
  }
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:8,代码来源:WebRtcAudioRecord.java

示例10: threadSleep

import org.webrtc.Logging; //导入方法依赖的package包/类
private void threadSleep(long millis) {
  try {
    Thread.sleep(millis);
  } catch (InterruptedException e) {
    Logging.e(TAG, "Thread.sleep failed: " + e.getMessage());
  }
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:8,代码来源:WebRtcAudioRecord.java

示例11: startPlayout

import org.webrtc.Logging; //导入方法依赖的package包/类
private boolean startPlayout() {
  Logging.d(TAG, "startPlayout");
  assertTrue(audioTrack != null);
  assertTrue(audioThread == null);
  if (audioTrack.getState() != AudioTrack.STATE_INITIALIZED) {
    Logging.e(TAG, "AudioTrack instance is not successfully initialized.");
    return false;
  }
  audioThread = new AudioTrackThread("AudioTrackJavaThread");
  audioThread.start();
  return true;
}
 
开发者ID:lgyjg,项目名称:AndroidRTC,代码行数:13,代码来源:WebRtcAudioTrack.java

示例12: stopRecording

import org.webrtc.Logging; //导入方法依赖的package包/类
private boolean stopRecording() {
  Logging.d(TAG, "stopRecording");
  assertTrue(audioThread != null);
  audioThread.stopThread();
  if (!ThreadUtils.joinUninterruptibly(audioThread, AUDIO_RECORD_THREAD_JOIN_TIMEOUT_MS)) {
    Logging.e(TAG, "Join of AudioRecordJavaThread timed out");
  }
  audioThread = null;
  if (effects != null) {
    effects.release();
  }
  releaseAudioResources();
  return true;
}
 
开发者ID:lgyjg,项目名称:AndroidRTC,代码行数:15,代码来源:WebRtcAudioRecord.java

示例13: isDeviceBlacklistedForOpenSLESUsage

import org.webrtc.Logging; //导入方法依赖的package包/类
private boolean isDeviceBlacklistedForOpenSLESUsage() {
  boolean blacklisted = blacklistDeviceForOpenSLESUsageIsOverridden
      ? blacklistDeviceForOpenSLESUsage
      : WebRtcAudioUtils.deviceIsBlacklistedForOpenSLESUsage();
  if (blacklisted) {
    Logging.e(TAG, Build.MODEL + " is blacklisted for OpenSL ES usage!");
  }
  return blacklisted;
}
 
开发者ID:lgyjg,项目名称:AndroidRTC,代码行数:10,代码来源:WebRtcAudioManager.java

示例14: enableBuiltInAEC

import org.webrtc.Logging; //导入方法依赖的package包/类
private boolean enableBuiltInAEC(boolean enable) {
  Logging.d(TAG, "enableBuiltInAEC(" + enable + ')');
  if (effects == null) {
    Logging.e(TAG, "Built-in AEC is not supported on this platform");
    return false;
  }
  return effects.setAEC(enable);
}
 
开发者ID:lgyjg,项目名称:AndroidRTC,代码行数:9,代码来源:WebRtcAudioRecord.java

示例15: reportWebRtcAudioRecordError

import org.webrtc.Logging; //导入方法依赖的package包/类
private void reportWebRtcAudioRecordError(String errorMessage) {
  Logging.e(TAG, "Run-time recording error: " + errorMessage);
  if (errorCallback != null) {
    errorCallback.onWebRtcAudioRecordError(errorMessage);
  }
}
 
开发者ID:lgyjg,项目名称:AndroidRTC,代码行数:7,代码来源:WebRtcAudioRecord.java


注:本文中的org.webrtc.Logging.e方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。