Classes | |
| class | Buffer |
| interface | Callback |
Public Member Functions | |
| 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 () |
Microphone class.
| OwliftMic | ( | ) | throws OwliftException |
The constructor.
| OwliftException |
| void close | ( | ) |
Stops the MIC on terminal.
| int getChannels | ( | ) |
Returns the number of channels.
| int getEncoding | ( | ) |
Returns the encoding format.
| int getFrequency | ( | ) |
Returns sampling frequency.
| boolean getNoiseReduction | ( | ) |
Tests if the noise reduction filter is enabled.
| int getSubSampling | ( | ) |
Returns the number of byte per 1 sample/channel.
| boolean isMuted | ( | ) |
Returns mute status.
| void setMute | ( | boolean | b | ) |
Sets mute.
No sounds recording in OwliftMediaRecorder if b sets true.
| b | true : mute, false : unmute. |
| void setNoiseReduction | ( | boolean | b | ) |
Sets noise reduction filter.
If b sets true before calling startInStream() , the noise reduction filter is enabled. It cannot be siwtched while streaming.
| b | true : Enables the noise reduction filter false : Disables the noise reduction filter. |
| void startInStream | ( | int | freq, |
| int | channels, | ||
| int | subSampling, | ||
| Callback | cb | ||
| ) | throws OwliftException |
Starts input sound streaming.
Note: due to hardware restriction, there is a possibility to be changed each parameters. To get current setting parameters, uses some methods ( for example, getFrequency()) after execute this method.
| freq | sampling frequency. |
| channels | number of channels. |
| subSampling | number of byte per 1 sample/channel. |
| cb | Callback. (null available). |
| OwliftException |
|
Copyright (C) 2016 Infinitegra, INC. All Rights Reserved. |
Generated by
|