1. Add missing register callback statement.
2. Add new property of SteamLength.
3. Fix RecorderErrorFactory bug.
Change-Id: I17818278e874e9b97667e5b577d3fbf1abd15f07
Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
Name: csapi-multimedia
Summary: Tizen Multimedia API for C#
-Version: 1.0.43
+Version: 1.0.44
Release: 0
Group: Development/Libraries
License: Apache-2.0
{
Stream = new byte[streamSize];
Marshal.Copy(stream, Stream, 0, streamSize);
+ StreamLength = streamSize;
Type = type;
Channel = channel;
RecordingTime = recordingTime;
public byte[] Stream { get; }
/// <summary>
+ /// The length of audio stream data.
+ /// </summary>
+ public int StreamLength { get; }
+
+ /// <summary>
/// The audio format type.
/// </summary>
public AudioSampleType Type { get; }
/// </summary>
public Recorder()
{
- RecorderErrorFactory.ThrowIfError (Interop.Recorder.Create(out _handle),
+ RecorderErrorFactory.ThrowIfError(Interop.Recorder.Create(out _handle),
"Failed to create Audio recorder");
Feature = new RecorderFeatures(this);
Setting = new RecorderSettings(this);
+
+ RegisterCallbacks();
}
/// <summary>
Feature = new RecorderFeatures(this);
Setting = new RecorderSettings(this);
+
+ RegisterCallbacks();
}
/// <summary>
internal static void ThrowIfError(int errorCode, string errorMessage = null)
{
RecorderError err = (RecorderError)errorCode;
- if(string.IsNullOrEmpty(errorMessage)) {
- errorMessage = err.ToString();
+ if (err == RecorderError.None)
+ {
+ return;
}
- Log.Info(RecorderLog.Tag, "errorCode : " + errorMessage);
+ Log.Info(RecorderLog.Tag, "errorCode : " + err.ToString());
switch (err)
{