Пример #1
0
 public void release() {
   if (pointer != 0) {
     StructureJNI.BASS_MIDI_FONTINFO_delete(pointer);
   }
   pointer = 0;
 }
Пример #2
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);
 }
Пример #3
0
 /**
  * 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);
 }
Пример #4
0
 /** 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);
 }
Пример #5
0
 /** 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;
 }
Пример #6
0
 /** number of presets/instruments */
 public void setPresets(int presets) {
   if (pointer == 0) throw new NullPointerException();
   StructureJNI.BASS_MIDI_FONTINFO_set_presets(pointer, presets);
 }
Пример #7
0
 /** number of presets/instruments */
 public int getPresets() {
   if (pointer == 0) throw new NullPointerException();
   int javaResult = StructureJNI.BASS_MIDI_FONTINFO_get_presets(pointer);
   return javaResult;
 }
Пример #8
0
 public void setComment(String comment) {
   if (pointer == 0) throw new NullPointerException();
   StructureJNI.BASS_MIDI_FONTINFO_set_comment(
       pointer, comment == null ? null : comment.getBytes());
 }
Пример #9
0
 public String getComment() {
   if (pointer == 0) throw new NullPointerException();
   String javaResult = StructureJNI.BASS_MIDI_FONTINFO_get_comment(pointer);
   return javaResult;
 }
Пример #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());
 }