クラス | |
class | Buffer |
interface | Callback |
公開メンバ関数 | |
OwliftMic () throws OwliftException | |
int | getFrequency () |
int | getChannels () |
int | getSubSampling () |
int | getEncoding () |
boolean | isMuted () |
void | setMute (boolean b) |
boolean | getNoiseReduction () |
void | setNoiseReduction (boolean b) |
void | startInStream (int freq, int channels, int subSampling, Callback cb) throws OwliftException |
void | close () |
Android端末のマイクのクラス
OwliftMic | ( | ) | throws OwliftException |
コンストラクタ。
void close | ( | ) |
端末のマイクを停止します。
int getChannels | ( | ) |
チャンネル数を取得します。
int getEncoding | ( | ) |
エンコーディング形式を取得します。
int getFrequency | ( | ) |
サンプリング周波数を取得します。
boolean getNoiseReduction | ( | ) |
ノイズ低減フィルタが有効かどうかを判断します。
int getSubSampling | ( | ) |
1サンプル・1チャンネル当たりのバイト数を取得します。
boolean isMuted | ( | ) |
ミュートを取得します。
void setMute | ( | boolean | b | ) |
ミュートを設定します。
b に true を指定すると OwliftMediaRecorder で 録音する際、無音状態となります。
b | true : ミュート有効 。 false : ミュート無効。 |
void setNoiseReduction | ( | boolean | b | ) |
ノイズ低減フィルタを設定します。
b に true を設定してから startInStream() を実行すると、ノイズ低減フィルタが有効になります。 ストリーミング中は切り替わりません。
b | true : ノイズ低減フィルタを有効にします。 false : ノイズ低減フィルタを無効にします。 |
void startInStream | ( | int | freq, |
int | channels, | ||
int | subSampling, | ||
Callback | cb | ||
) | throws OwliftException |
集音を開始します。
ハードウェアの制約により、指定した freq、channels、subSampling 通りに設定されるとは限らないことに注意してください。 実際に使用される設定値を知るには、このメソッドを実行した後に、 getFrequency() などのメソッドで 値を取得してください。
freq | サンプリング周波数。 |
channels | チャンネル数。 |
subSampling | 1サンプル・1チャンネル当たりのバイト数。 |
cb | コールバック用インターフェース。null可。 |
Copyright (C) 2016 Infinitegra, INC. All Rights Reserved. |
Generated by
![]() |