sync with bastp to add midi support
This commit is contained in:
parent
5479eb87a3
commit
42cb7979e4
@ -93,6 +93,10 @@ public class Bastp {
|
||||
tags = (new Mp4File()).getTags(s);
|
||||
tags.put("type", "MP4");
|
||||
}
|
||||
else if(magic.substring(0,4).equals("MThd")) {
|
||||
tags = (new MidiFile()).getTags(s);
|
||||
tags.put("type", "MIDI");
|
||||
}
|
||||
|
||||
}
|
||||
catch (IOException e) {
|
||||
|
35
src/ch/blinkenlights/bastp/MidiFile.java
Normal file
35
src/ch/blinkenlights/bastp/MidiFile.java
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (C) 2017 Google Inc.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package ch.blinkenlights.bastp;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.RandomAccessFile;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class MidiFile extends Common {
|
||||
|
||||
/**
|
||||
* Returns the tags of a Midi File which is just an empty HashMap
|
||||
* as there seems to be no midi-tag standard (?)
|
||||
*/
|
||||
public HashMap getTags(RandomAccessFile s) throws IOException {
|
||||
HashMap tags = new HashMap();
|
||||
return tags;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user