2 using System.Runtime.InteropServices;
4 namespace Tizen.Multimedia
6 internal static partial class Interop
8 internal static partial class RecorderSettings
10 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_audio_channel")]
11 internal static extern RecorderError GetAudioChannel(IntPtr handle, out int channelCount);
13 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_audio_channel")]
14 internal static extern RecorderError SetAudioChannel(IntPtr handle, int channelCount);
16 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_audio_device")]
17 internal static extern RecorderError GetAudioDevice(IntPtr handle, out RecorderAudioDevice device);
19 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_audio_device")]
20 internal static extern RecorderError SetAudioDevice(IntPtr handle, RecorderAudioDevice device);
22 [DllImport(Libraries.Recorder, EntryPoint = "recorder_get_audio_level")]
23 internal static extern RecorderError GetAudioLevel(IntPtr handle, out double dB);
25 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_audio_samplerate")]
26 internal static extern RecorderError GetAudioSampleRate(IntPtr handle, out int sampleRate);
28 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_audio_samplerate")]
29 internal static extern RecorderError SetAudioSampleRate(IntPtr handle, int sampleRate);
31 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_audio_encoder_bitrate")]
32 internal static extern RecorderError GetAudioEncoderBitrate(IntPtr handle, out int bitRate);
34 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_audio_encoder_bitrate")]
35 internal static extern RecorderError SetAudioEncoderBitrate(IntPtr handle, int bitRate);
37 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_video_encoder_bitrate")]
38 internal static extern RecorderError GetVideoEncoderBitrate(IntPtr handle, out int bitRate);
40 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_video_encoder_bitrate")]
41 internal static extern RecorderError SetVideoEncoderBitrate(IntPtr handle, int bitRate);
43 [DllImport(Libraries.Recorder, EntryPoint = "recorder_get_audio_encoder")]
44 internal static extern RecorderError GetAudioEncoder(IntPtr handle, out RecorderAudioCodec codec);
46 [DllImport(Libraries.Recorder, EntryPoint = "recorder_set_audio_encoder")]
47 internal static extern RecorderError SetAudioEncoder(IntPtr handle, RecorderAudioCodec codec);
49 [DllImport(Libraries.Recorder, EntryPoint = "recorder_get_video_encoder")]
50 internal static extern RecorderError GetVideoEncoder(IntPtr handle, out RecorderVideoCodec codec);
52 [DllImport(Libraries.Recorder, EntryPoint = "recorder_set_video_encoder")]
53 internal static extern RecorderError SetVideoEncoder(IntPtr handle, RecorderVideoCodec codec);
55 [DllImport(Libraries.Recorder, EntryPoint = "recorder_get_file_format")]
56 internal static extern RecorderError GetFileFormat(IntPtr handle, out RecorderFileFormat format);
58 [DllImport(Libraries.Recorder, EntryPoint = "recorder_set_file_format")]
59 internal static extern RecorderError SetFileFormat(IntPtr handle, RecorderFileFormat format);
61 [DllImport(Libraries.Recorder, EntryPoint = "recorder_get_filename")]
62 internal static extern RecorderError GetFileName(IntPtr handle, out IntPtr path);
64 [DllImport(Libraries.Recorder, EntryPoint = "recorder_set_filename")]
65 internal static extern RecorderError SetFileName(IntPtr handle, string path);
67 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_size_limit")]
68 internal static extern RecorderError GetSizeLimit(IntPtr handle, out int kbyte);
70 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_size_limit")]
71 internal static extern RecorderError SetSizeLimit(IntPtr handle, int kbyte);
73 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_time_limit")]
74 internal static extern RecorderError GetTimeLimit(IntPtr handle, out int second);
76 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_time_limit")]
77 internal static extern RecorderError SetTimeLimit(IntPtr handle, int second);
79 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_is_muted")]
80 [return: MarshalAs(UnmanagedType.I1)]
81 internal static extern bool GetMute(IntPtr handle);
83 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_mute")]
84 internal static extern RecorderError SetMute(IntPtr handle, bool enable);
86 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_recording_motion_rate")]
87 internal static extern RecorderError GetMotionRate(IntPtr handle, out double motionRate);
89 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_recording_motion_rate")]
90 internal static extern RecorderError SetMotionRate(IntPtr handle, double motionRate);
92 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_orientation_tag")]
93 internal static extern RecorderError GetOrientationTag(IntPtr handle, out RecorderOrientation orientation);
95 [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_orientation_tag")]
96 internal static extern RecorderError SetOrientationTag(IntPtr handle, RecorderOrientation orientation);
98 [DllImport(Libraries.Recorder, EntryPoint = "recorder_get_video_resolution")]
99 internal static extern RecorderError GetVideoResolution(IntPtr handle, out int width, out int height);
101 [DllImport(Libraries.Recorder, EntryPoint = "recorder_set_video_resolution")]
102 internal static extern RecorderError SetVideoResolution(IntPtr handle, int width, int height);