Klasse XuggleAudioDriver

java.lang.Object
sidplay.audio.xuggle.XuggleBase
sidplay.audio.xuggle.XuggleAudioDriver
Alle implementierten Schnittstellen:
AudioDriver
Bekannte direkte Unterklassen:
AACDriver, FLACDriver, MP3Driver, WAVDriver

public abstract class XuggleAudioDriver extends XuggleBase implements AudioDriver
  • Felddetails

    • out

      protected OutputStream out
    • context

      private EventScheduler context
    • writer

      private com.xuggle.mediatool.IMediaWriter writer
    • firstTimeStamp

      private long firstTimeStamp
    • ticksPerMicrosecond

      private double ticksPerMicrosecond
    • aborted

      private boolean aborted
    • sampleBuffer

      protected ByteBuffer sampleBuffer
  • Konstruktordetails

    • XuggleAudioDriver

      public XuggleAudioDriver()
  • Methodendetails

    • open

      public void open(IAudioSection audioSection, String recordingFilename, CPUClock cpuClock, EventScheduler context) throws IOException, LineUnavailableException, InterruptedException
      Beschreibung aus Schnittstelle kopiert: AudioDriver
      Open audio interface.
      Angegeben von:
      open in Schnittstelle AudioDriver
      Parameter:
      audioSection - audio configuration
      recordingFilename - name for a recording
      cpuClock - CPU clock
      context - event context
      Löst aus:
      IOException
      LineUnavailableException
      InterruptedException
    • write

      public void write() throws InterruptedException
      Beschreibung aus Schnittstelle kopiert: AudioDriver
      Write the complete contents of ByteBuffer to audio device.
      Angegeben von:
      write in Schnittstelle AudioDriver
      Löst aus:
      InterruptedException
    • close

      public void close()
      Beschreibung aus Schnittstelle kopiert: AudioDriver
      Free the audio device. (Counterpart of open().)
      Angegeben von:
      close in Schnittstelle AudioDriver
    • buffer

      public ByteBuffer buffer()
      Beschreibung aus Schnittstelle kopiert: AudioDriver
      Return the bytebuffer intended to hold the audio data. The audio data is in interleaved format and has as many channels as given by the result of open(). Use putShort() to write 16-bit values. Don't call write() until you have filled the entire buffer with audio.
      Angegeben von:
      buffer in Schnittstelle AudioDriver
      Gibt zurück:
      The buffer to write audio to.
    • isRecording

      public boolean isRecording()
      Angegeben von:
      isRecording in Schnittstelle AudioDriver
      Gibt zurück:
      is this audio driver recording tunes?
    • getTimeStamp

      private long getTimeStamp()
    • configureStreamCoder

      protected void configureStreamCoder(com.xuggle.xuggler.IStreamCoder streamCoder, IAudioSection audioSection)
    • getSupportedSamplingRates

      protected abstract List<SamplingRate> getSupportedSamplingRates()
    • getDefaultSamplingRate

      protected abstract SamplingRate getDefaultSamplingRate()
    • getAudioCodec

      protected abstract com.xuggle.xuggler.ICodec.ID getAudioCodec()
    • getOutputFormatName

      protected abstract String getOutputFormatName()
    • getOut

      protected abstract OutputStream getOut(String recordingFilename) throws IOException
      Löst aus:
      IOException