public static SongFrame NewCodec(string codec) { IntPtr codec_ptr = Utility.Utf8StringToPtr(codec); SongFrame frame = new SongFrame(NJB_Songid_Frame_New_Codec(codec_ptr)); Utility.FreeStringPtr(codec_ptr); return frame; }
public static SongFrame New(string label, string value) { if(value == null) { return null; } IntPtr label_ptr = Utility.Utf8StringToPtr(label); IntPtr value_ptr = Utility.Utf8StringToPtr(value); SongFrame frame = new SongFrame(NJB_Songid_Frame_New_String(label_ptr, value_ptr)); Utility.FreeStringPtr(label_ptr); Utility.FreeStringPtr(value_ptr); return frame; }
public static SongFrame New(string label, ushort value) { IntPtr label_ptr = Utility.Utf8StringToPtr(label); SongFrame frame = new SongFrame(NJB_Songid_Frame_New_Uint16(label_ptr, value)); Utility.FreeStringPtr(label_ptr); return frame; }
private void AddFrame(SongFrame frame) { if(frame == null) { return; } NJB_Songid_Addframe(Handle, frame.Handle); }