public void release() {
   if (pointer != 0) {
     StructureJNI.BASS_MIDI_FONTINFO_delete(pointer);
   }
   pointer = 0;
 }
 /** sample format (CTYPE) if packed */
 public void setSampleType(int sampleType) {
   if (pointer == 0) throw new NullPointerException();
   StructureJNI.BASS_MIDI_FONTINFO_set_samtype(pointer, sampleType);
 }
 /**
  * Allocate a new <code>BASS_MIDI_FONTINFO</code>.<br>
  * The call <code>isNull()</code> on the object created will return false.<br>
  *
  * <pre><code>  BASS_MIDI_FONTINFO obj = BASS_MIDI_FONTINFO.allocate();
  *  (obj == null) <=> obj.isNull() <=> false
  * </code></pre>
  */
 public static BASS_MIDI_FONTINFO allocate() {
   final long pointer = StructureJNI.BASS_MIDI_FONTINFO_new();
   if (pointer == 0) throw new OutOfMemoryError();
   return new BASS_MIDI_FONTINFO(pointer);
 }
 /** amount of sample data currently loaded */
 public void setSampleLoad(int sampleLoad) {
   if (pointer == 0) throw new NullPointerException();
   StructureJNI.BASS_MIDI_FONTINFO_set_samload(pointer, sampleLoad);
 }
 /** sample format (CTYPE) if packed */
 public int getSampleType() {
   if (pointer == 0) throw new NullPointerException();
   int javaResult = StructureJNI.BASS_MIDI_FONTINFO_get_samtype(pointer);
   return javaResult;
 }
 /** number of presets/instruments */
 public void setPresets(int presets) {
   if (pointer == 0) throw new NullPointerException();
   StructureJNI.BASS_MIDI_FONTINFO_set_presets(pointer, presets);
 }
 /** number of presets/instruments */
 public int getPresets() {
   if (pointer == 0) throw new NullPointerException();
   int javaResult = StructureJNI.BASS_MIDI_FONTINFO_get_presets(pointer);
   return javaResult;
 }
 public void setComment(String comment) {
   if (pointer == 0) throw new NullPointerException();
   StructureJNI.BASS_MIDI_FONTINFO_set_comment(
       pointer, comment == null ? null : comment.getBytes());
 }
 public String getComment() {
   if (pointer == 0) throw new NullPointerException();
   String javaResult = StructureJNI.BASS_MIDI_FONTINFO_get_comment(pointer);
   return javaResult;
 }
Esempio n. 10
0
 public void setName(String name) {
   if (pointer == 0) throw new NullPointerException();
   StructureJNI.BASS_MIDI_FONTINFO_set_name(pointer, name == null ? null : name.getBytes());
 }