ボイスチャットAPI(Base Class).
More...
|
| | MonobitVoiceBase () |
| | コンストラクタ More...
|
| |
| void | UpdateChatState () |
| | チャット状態を更新する More...
|
| |
| virtual bool | OnBeginEncode (int channels, int samplingRate) |
| | エンコード前処理 More...
|
| |
| virtual bool | OnPreEncode (float[] voice, int channels, int samplingRate) |
| | エンコード前のボイスの加工処理 More...
|
| |
| virtual void | OnEndEncode () |
| | エンコード後処理 More...
|
| |
| virtual bool | OnBeginDecode (int channels, int samplingRate) |
| | デコード前処理 More...
|
| |
| virtual bool | OnPreDecode (float[] decodeVoice, int channels, int samplingRate) |
| | ボイスデータ再生前処理 More...
|
| |
| virtual void | OnEndDecode (bool success) |
| | ボイスデータ再生後処理 More...
|
| |
| virtual void | OnSendVoice (bool debugMode, object[] header, byte[] voice, int voice_size) |
| | エンコードボイスデータ送信デリゲート More...
|
| |
| virtual void | OnBps (int bps) |
| | 送信時の音声データのbps取得コールバック More...
|
| |
| void | PlaybackVoice () |
| | PlaybackVoiceDataでdelay_playback = false設定した後に任意で再生する More...
|
| |
| void | PlaybackVoiceData (object[] parameters, byte[] voice, int voice_size, bool unreliable=false, bool delay_playback=false, bool ignore_allow_lag=false) |
| | ボイスデータの再生 More...
|
| |
| void | PauseVoice () |
| | 再生を一時停止する More...
|
| |
| void | StopVoice () |
| | 再生を停止する More...
|
| |
| AudioClip | GetAudioClip () |
| | AudioClip情報の取得 More...
|
| |
| int | GetCaptureSamplingRate () |
| | 録音データのサンプリングレートの取得 More...
|
| |
| int | GetCaptureBufferSize () |
| | 録音データのバッファサイズの取得 More...
|
| |
| virtual void | Awake () |
| | インスタンスの開始 More...
|
| |
| virtual void | Start () |
| | コンポーネントの開始 More...
|
| |
| virtual void | Update () |
| | 更新 More...
|
| |
| virtual void | OnDestroy () |
| | 破棄 More...
|
| |
|
| ushort | Version [get] |
| | バージョン番号 More...
|
| |
| OpusCodec | OpusCodec [get] |
| | Opusコーデック設定 More...
|
| |
| Codec.Opus.Application | Application [get, set] |
| | コーデックのアプリケーション設定 More...
|
| |
| OpusSignal | OpusSignal [get, set] |
| | コーデックのシグナル設定 More...
|
| |
| EncodeMode | EncodeMode [get, set] |
| | VBRか判定 More...
|
| |
| CompressedBitRatePreset | CompressedBitRatePreset [get, set] |
| | 圧縮ビットレートのプリセット More...
|
| |
| int | CompressedBitRate [get, set] |
| | 圧縮ビットレート More...
|
| |
| OpusBandwidth | OpusBandwidth [get, set] |
| | 帯域設定 More...
|
| |
| SampligRatePreset | SampligRatePreset [get, set] |
| | サンプリングレートのプリセット More...
|
| |
| int | EncodeSamplingRate [get, set] |
| | サンプリングレート More...
|
| |
| DecodeSamplingRatePreset | DecodeSamplingRatePreset [get, set] |
| | デコード用のサンプリングレートのプリセット More...
|
| |
| int | Complexity [get, set] |
| | エンコード品質 More...
|
| |
| FrameSizeMs | FrameSizeMs [get, set] |
| | 録音時間 More...
|
| |
| bool | Surround3D [get, set] |
| | 3Dサラウンド設定 More...
|
| |
| bool | VAD [get, set] |
| | 無音検出をするかどうか More...
|
| |
| int | TalkingThreshold [get, set] |
| | 無音検出閾値 More...
|
| |
| int | VADLatitude [get, set] |
| | 無音検知幅 More...
|
| |
| bool | ReliableMode [get, set] |
| | UDPモード More...
|
| |
| bool | Encrypt [get, set] |
| | 暗号化 More...
|
| |
| bool | DebugMode [get, set] |
| | デバッグモード More...
|
| |
| bool | ShowVoiceDataBps [get, set] |
| | 音声データのbps表示モード More...
|
| |
| bool | PlaybackVoiceLocalNoCheck [get, set] |
| | 再生ボイスデータのローカルチェックの無効化 More...
|
| |
| MonobitMicrophone | Microphone [get] |
| | マイクコンポーネント More...
|
| |
| MonobitStreamingPlayer | StreamingPlayer [get] |
| | スピーカーコンポーネント More...
|
| |
| Hashtable | customProperties [get, set] |
| | カスタムプロパティ More...
|
| |
| bool | isLocalPlayer [get] |
| | ローカルプレイヤー More...
|
| |
| bool | isLocal [get] |
| | MonobitViewがローカルプレイヤーか判定する More...
|
| |
| bool | isDecoderStarting [get] |
| | デコーダーの開始フラグ More...
|
| |
| long | RemainSamples [get] |
| | 残りサンプル数の取得 More...
|
| |
| double | RemainTime [get] |
| | 残り再生時間の取得 More...
|
| |
| Int64 | TotalWriteSample [get] |
| | 総書き込みサンプル数 More...
|
| |
| MonobitEngine.VoiceChat.MonobitVoiceBase.MonobitVoiceBase |
( |
| ) |
|
| virtual void MonobitEngine.VoiceChat.MonobitVoiceBase.Awake |
( |
| ) |
|
|
virtual |
| AudioClip MonobitEngine.VoiceChat.MonobitVoiceBase.GetAudioClip |
( |
| ) |
|
| int MonobitEngine.VoiceChat.MonobitVoiceBase.GetCaptureBufferSize |
( |
| ) |
|
| int MonobitEngine.VoiceChat.MonobitVoiceBase.GetCaptureSamplingRate |
( |
| ) |
|
| virtual bool MonobitEngine.VoiceChat.MonobitVoiceBase.OnBeginDecode |
( |
int |
channels, |
|
|
int |
samplingRate |
|
) |
| |
|
virtual |
| virtual bool MonobitEngine.VoiceChat.MonobitVoiceBase.OnBeginEncode |
( |
int |
channels, |
|
|
int |
samplingRate |
|
) |
| |
|
virtual |
| virtual void MonobitEngine.VoiceChat.MonobitVoiceBase.OnBps |
( |
int |
bps | ) |
|
|
virtual |
| virtual void MonobitEngine.VoiceChat.MonobitVoiceBase.OnDestroy |
( |
| ) |
|
|
virtual |
| virtual void MonobitEngine.VoiceChat.MonobitVoiceBase.OnEndDecode |
( |
bool |
success | ) |
|
|
virtual |
| virtual void MonobitEngine.VoiceChat.MonobitVoiceBase.OnEndEncode |
( |
| ) |
|
|
virtual |
| virtual bool MonobitEngine.VoiceChat.MonobitVoiceBase.OnPreDecode |
( |
float[] |
decodeVoice, |
|
|
int |
channels, |
|
|
int |
samplingRate |
|
) |
| |
|
virtual |
| virtual bool MonobitEngine.VoiceChat.MonobitVoiceBase.OnPreEncode |
( |
float[] |
voice, |
|
|
int |
channels, |
|
|
int |
samplingRate |
|
) |
| |
|
virtual |
| virtual void MonobitEngine.VoiceChat.MonobitVoiceBase.OnSendVoice |
( |
bool |
debugMode, |
|
|
object[] |
header, |
|
|
byte[] |
voice, |
|
|
int |
voice_size |
|
) |
| |
|
virtual |
| void MonobitEngine.VoiceChat.MonobitVoiceBase.PauseVoice |
( |
| ) |
|
| void MonobitEngine.VoiceChat.MonobitVoiceBase.PlaybackVoice |
( |
| ) |
|
PlaybackVoiceDataでdelay_playback = false設定した後に任意で再生する
| void MonobitEngine.VoiceChat.MonobitVoiceBase.PlaybackVoiceData |
( |
object[] |
parameters, |
|
|
byte[] |
voice, |
|
|
int |
voice_size, |
|
|
bool |
unreliable = false, |
|
|
bool |
delay_playback = false, |
|
|
bool |
ignore_allow_lag = false |
|
) |
| |
| virtual void MonobitEngine.VoiceChat.MonobitVoiceBase.Start |
( |
| ) |
|
|
virtual |
| void MonobitEngine.VoiceChat.MonobitVoiceBase.StopVoice |
( |
| ) |
|
| virtual void MonobitEngine.VoiceChat.MonobitVoiceBase.Update |
( |
| ) |
|
|
virtual |
| void MonobitEngine.VoiceChat.MonobitVoiceBase.UpdateChatState |
( |
| ) |
|
チャット状態を更新する
MonobitViewがローカルプレイヤーの場合はチャット状態を維持する ローカルプレイヤーでなくなった場合はチャット状態を終了させる
| Codec.Opus.Application MonobitEngine.VoiceChat.MonobitVoiceBase.m_Application = Codec.Opus.Application.VoIP |
|
protected |
| OpusBandwidth MonobitEngine.VoiceChat.MonobitVoiceBase.m_bandWidth = OpusBandwidth.WideBand |
|
protected |
| int MonobitEngine.VoiceChat.MonobitVoiceBase.m_complexity = 10 |
|
protected |
| CompressedBitRatePreset MonobitEngine.VoiceChat.MonobitVoiceBase.m_compressedBitRatePreset = CompressedBitRatePreset.VoipLow |
|
protected |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.m_DebugMode = false |
|
protected |
| DecodeSamplingRatePreset MonobitEngine.VoiceChat.MonobitVoiceBase.m_decodeSamplingRatePreset = DecodeSamplingRatePreset.Preset_16000Hz |
|
protected |
| EncodeMode MonobitEngine.VoiceChat.MonobitVoiceBase.m_EncodeMode = EncodeMode.VBR |
|
protected |
| int MonobitEngine.VoiceChat.MonobitVoiceBase.m_encodeSamplingRate = 16000 |
|
protected |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.m_Encrypt = false |
|
protected |
| FrameSizeMs MonobitEngine.VoiceChat.MonobitVoiceBase.m_FrameSizeMs = FrameSizeMs.FrameSize40ms |
|
protected |
| int MonobitEngine.VoiceChat.MonobitVoiceBase.m_nCompressedBitRate = 32000 |
|
protected |
| OpusSignal MonobitEngine.VoiceChat.MonobitVoiceBase.m_OpusSignal = OpusSignal.Voice |
|
protected |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.m_PlaybackVoiceLocalNoCheck = false |
再生ボイスデータのローカルチェックの無効化
通常、MonobitVoiceの「Debug Mode」がON場合には自分自身の音声が聞こえるようになりますが、 その場合でもエディターよりPlaybackVoiceLocalNoCheckのトグルをON/OFFすることで音声のON/OFFができます。
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.m_ReliableMode = true |
|
protected |
| UInt32 MonobitEngine.VoiceChat.MonobitVoiceBase.m_requireIndex = 0 |
|
protected |
| SampligRatePreset MonobitEngine.VoiceChat.MonobitVoiceBase.m_samplingRatePreset = SampligRatePreset.Medium |
|
protected |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.m_ShowVoiceDataBps = false |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.m_Surround3D = false |
|
protected |
| int MonobitEngine.VoiceChat.MonobitVoiceBase.m_TalkingThreshold = -30 |
|
protected |
| int MonobitEngine.VoiceChat.MonobitVoiceBase.m_VADLatitude = 5 |
|
protected |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.m_VoiceActivityDetector = false |
|
protected |
| Codec.Opus.Application MonobitEngine.VoiceChat.MonobitVoiceBase.Application |
|
getset |
| int MonobitEngine.VoiceChat.MonobitVoiceBase.Complexity |
|
getset |
| int MonobitEngine.VoiceChat.MonobitVoiceBase.CompressedBitRate |
|
getset |
| CompressedBitRatePreset MonobitEngine.VoiceChat.MonobitVoiceBase.CompressedBitRatePreset |
|
getset |
| Hashtable MonobitEngine.VoiceChat.MonobitVoiceBase.customProperties |
|
getsetprotected |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.DebugMode |
|
getset |
| DecodeSamplingRatePreset MonobitEngine.VoiceChat.MonobitVoiceBase.DecodeSamplingRatePreset |
|
getset |
| EncodeMode MonobitEngine.VoiceChat.MonobitVoiceBase.EncodeMode |
|
getset |
| int MonobitEngine.VoiceChat.MonobitVoiceBase.EncodeSamplingRate |
|
getset |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.Encrypt |
|
getset |
| FrameSizeMs MonobitEngine.VoiceChat.MonobitVoiceBase.FrameSizeMs |
|
getset |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.isDecoderStarting |
|
get |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.isLocal |
|
get |
MonobitViewがローカルプレイヤーか判定する
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.isLocalPlayer |
|
getprotected |
| OpusBandwidth MonobitEngine.VoiceChat.MonobitVoiceBase.OpusBandwidth |
|
getset |
| OpusCodec MonobitEngine.VoiceChat.MonobitVoiceBase.OpusCodec |
|
get |
| OpusSignal MonobitEngine.VoiceChat.MonobitVoiceBase.OpusSignal |
|
getset |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.PlaybackVoiceLocalNoCheck |
|
getset |
再生ボイスデータのローカルチェックの無効化
通常、MonobitVoiceの「Debug Mode」がON場合には自分自身の音声が聞こえるようになりますが、 その場合でもエディターよりPlaybackVoiceLocalNoCheckのトグルをON/OFFすることで音声のON/OFFができます。
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.ReliableMode |
|
getset |
| long MonobitEngine.VoiceChat.MonobitVoiceBase.RemainSamples |
|
get |
| double MonobitEngine.VoiceChat.MonobitVoiceBase.RemainTime |
|
get |
| SampligRatePreset MonobitEngine.VoiceChat.MonobitVoiceBase.SampligRatePreset |
|
getset |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.ShowVoiceDataBps |
|
getset |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.Surround3D |
|
getset |
| int MonobitEngine.VoiceChat.MonobitVoiceBase.TalkingThreshold |
|
getset |
| Int64 MonobitEngine.VoiceChat.MonobitVoiceBase.TotalWriteSample |
|
get |
| bool MonobitEngine.VoiceChat.MonobitVoiceBase.VAD |
|
getset |
| int MonobitEngine.VoiceChat.MonobitVoiceBase.VADLatitude |
|
getset |
| ushort MonobitEngine.VoiceChat.MonobitVoiceBase.Version |
|
get |
The documentation for this class was generated from the following file: