![JAR search and dependency download from the Maven repository](/logo.png)
de.sciss.audiofile.impl.BasicHeader.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of audiofile_3 Show documentation
Show all versions of audiofile_3 Show documentation
A library to read and write uncompressed audio files (AIFF, WAVE, etc.)
/*
* BasicHeader.java
* (AudioFile)
*
* Copyright (c) 2004-2021 Hanns Holger Rutz. All rights reserved.
*
* This software is published under the GNU Affero General Public License v3+
*
*
* For further information, please contact Hanns Holger Rutz at
* [email protected]
*/
package de.sciss.audiofile.impl
import java.io.{DataInput, DataInputStream, DataOutputStream, IOException, RandomAccessFile}
import de.sciss.audiofile.{AudioFileHeader, AudioFileSpec, WritableAudioFileHeader}
private[audiofile] trait BasicHeader {
@throws(classOf[IOException])
def identify(dis: DataInputStream): Boolean
@throws(classOf[IOException])
final def read(raf: RandomAccessFile): AudioFileHeader = readDataInput(raf)
@throws(classOf[IOException])
final def read(dis: DataInputStream): AudioFileHeader = readDataInput(dis)
@throws(classOf[IOException])
protected def readDataInput(din: DataInput): AudioFileHeader
@throws(classOf[IOException])
def write(raf: RandomAccessFile, spec: AudioFileSpec): WritableAudioFileHeader
@throws(classOf[IOException])
def write(dos: DataOutputStream, spec: AudioFileSpec): WritableAudioFileHeader
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy