Ejemplo n.º 1
0
 public void release() {
   if (pointer != 0) {
     StructureJNI.BASS_MIDI_FONTINFO_delete(pointer);
   }
   pointer = 0;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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());
 }
Ejemplo n.º 9
0
 public String getComment() {
   if (pointer == 0) throw new NullPointerException();
   String javaResult = StructureJNI.BASS_MIDI_FONTINFO_get_comment(pointer);
   return javaResult;
 }
Ejemplo 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());
 }