mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
aa7bb8fa1c
glib-sharp will only get a new release with the new API that we need for 3.0 in a year or something. Instead of waiting a year before we can release something we now have our own internal copy of glib-sharp trunk that will be dropped once glib-sharp 3.0 is released. Everything is now compilable and working without any additional patches.
31 lines
1 KiB
Text
31 lines
1 KiB
Text
public TunerChannel (string label, TunerChannelFlags flags, float freq_multiplicator, ulong min_frequency, ulong max_frequency, int min_signal, int max_signal) {
|
|
unsafe {
|
|
IntPtr* raw_ptr = (IntPtr*) ( ( (byte*) Handle) + label_offset);
|
|
*raw_ptr = Gst.GLib.Marshaller.StringToPtrGStrdup (label);
|
|
|
|
}
|
|
unsafe {
|
|
int* raw_ptr = (int*) ( ( (byte*) Handle) + flags_offset);
|
|
*raw_ptr = (int) flags;
|
|
}
|
|
unsafe {
|
|
float* raw_ptr = (float*) ( ( (byte*) Handle) + freq_multiplicator_offset);
|
|
*raw_ptr = freq_multiplicator;
|
|
}
|
|
unsafe {
|
|
UIntPtr* raw_ptr = (UIntPtr*) ( ( (byte*) Handle) + min_frequency_offset);
|
|
*raw_ptr = (UIntPtr) min_frequency;
|
|
}
|
|
unsafe {
|
|
UIntPtr* raw_ptr = (UIntPtr*) ( ( (byte*) Handle) + max_frequency_offset);
|
|
*raw_ptr = (UIntPtr) max_frequency;
|
|
}
|
|
unsafe {
|
|
int* raw_ptr = (int*) ( ( (byte*) Handle) + min_signal_offset);
|
|
*raw_ptr = min_signal;
|
|
}
|
|
unsafe {
|
|
int* raw_ptr = (int*) ( ( (byte*) Handle) + max_signal_offset);
|
|
*raw_ptr = max_signal;
|
|
}
|
|
}
|