gstreamer/gstreamer-sharp/TunerChannel.custom
Sebastian Dröge aa7bb8fa1c Use internal glib-sharp copy everywhere and make it work side-by-side with real glib-sharp
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.
2009-08-05 16:57:20 +02:00

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;
}
}