Public Member Functions | |
AVAudioThread (AVCodecContext ctx) | |
void | run () |
Protected Member Functions | |
void | close () |
Package Functions | |
void | setPlaying (boolean playing) |
void | setRunning (boolean running) |
ByteBuffer | decodeAudio (AVPacket packet) |
Package Attributes | |
ALAudioThread | alThread |
final int | SAMPLES = AVCodecLibrary.AVCODEC_MAX_AUDIO_FRAME_SIZE |
Pointer | decoded |
int | time |
Static Package Attributes | |
static final int | AUDIO_BUFFER = 0xFFFF |
decodes audio from stream and plays it via an ALAudioThread.
Definition at line 22 of file AVAudioThread.java.
org.hfbk.vid.AVAudioThread.AVAudioThread | ( | AVCodecContext | ctx | ) |
create a new audio player from given codec context.
Definition at line 36 of file AVAudioThread.java.
References org.hfbk.vid.AVAudioThread.alThread, org.hfbk.vid.AVAudioThread.AUDIO_BUFFER, net.sf.ffmpeg_java.AVCodecLibrary.AVCodecContext.bits_per_coded_sample, net.sf.ffmpeg_java.AVCodecLibrary.AVCodecContext.channels, org.hfbk.vid.AVStreamThread.ctx, org.hfbk.vid.AVAudioThread.decodeAudio(), org.hfbk.vid.AVAudioThread.decoded, org.hfbk.vid.AVStreamThread.poll(), net.sf.ffmpeg_java.AVFormatLibrary.AVPacket.pts, org.hfbk.vid.AVStreamThread.running, net.sf.ffmpeg_java.AVCodecLibrary.AVCodecContext.sample_rate, org.hfbk.vid.AVAudioThread.SAMPLES, org.hfbk.vid.AVStreamThread.tick(), and org.hfbk.vid.AVAudioThread.time.
Here is the call graph for this function:
void org.hfbk.vid.AVAudioThread.setPlaying | ( | boolean | playing | ) | [package] |
set this streams playing state. can be toggled at any time.
Reimplemented from org.hfbk.vid.AVStreamThread.
Definition at line 72 of file AVAudioThread.java.
References org.hfbk.vid.AVAudioThread.alThread, and org.dronus.al.ALAudioThread.playing.
Referenced by org.hfbk.vid.AVStreamingThread.setPlaying().
Here is the caller graph for this function:
void org.hfbk.vid.AVAudioThread.run | ( | ) |
Definition at line 77 of file AVAudioThread.java.
References org.hfbk.vid.AVAudioThread.alThread, org.hfbk.vid.AVAudioThread.close(), and org.dronus.al.ALAudioThread.run().
Here is the call graph for this function:
void org.hfbk.vid.AVAudioThread.setRunning | ( | boolean | running | ) | [package] |
set this streams running state. setting this to false will stop this streams operation and quit this thread.
Reimplemented from org.hfbk.vid.AVStreamThread.
Definition at line 82 of file AVAudioThread.java.
References org.hfbk.vid.AVAudioThread.alThread, and org.dronus.al.ALAudioThread.running.
Referenced by org.hfbk.vid.AVStreamingThread.close().
Here is the caller graph for this function:
void org.hfbk.vid.AVAudioThread.close | ( | ) | [protected] |
Reimplemented from org.hfbk.vid.AVStreamThread.
Definition at line 87 of file AVAudioThread.java.
References org.hfbk.vid.AVAudioThread.decoded.
Referenced by org.hfbk.vid.AVAudioThread.run().
Here is the caller graph for this function:
ByteBuffer org.hfbk.vid.AVAudioThread.decodeAudio | ( | AVPacket | packet | ) | [package] |
Definition at line 97 of file AVAudioThread.java.
References org.hfbk.vid.AVStreamThread.ctx, net.sf.ffmpeg_java.AVFormatLibrary.AVPacket.data, org.hfbk.vid.AVAudioThread.decoded, org.hfbk.vid.AVStreamThread.free, org.hfbk.vid.AVAudioThread.SAMPLES, and net.sf.ffmpeg_java.AVFormatLibrary.AVPacket.size.
Referenced by org.hfbk.vid.AVAudioThread.AVAudioThread().
Here is the caller graph for this function:
final int org.hfbk.vid.AVAudioThread.AUDIO_BUFFER = 0xFFFF [static, package] |
Definition at line 24 of file AVAudioThread.java.
Referenced by org.hfbk.vid.AVAudioThread.AVAudioThread().
Definition at line 28 of file AVAudioThread.java.
Referenced by org.hfbk.vid.AVAudioThread.AVAudioThread(), org.hfbk.vid.AVStreamingThread.getAudioSource(), org.hfbk.vid.AVAudioThread.run(), org.hfbk.vid.AVAudioThread.setPlaying(), and org.hfbk.vid.AVAudioThread.setRunning().
final int org.hfbk.vid.AVAudioThread.SAMPLES = AVCodecLibrary.AVCODEC_MAX_AUDIO_FRAME_SIZE [package] |
Definition at line 30 of file AVAudioThread.java.
Referenced by org.hfbk.vid.AVAudioThread.AVAudioThread(), and org.hfbk.vid.AVAudioThread.decodeAudio().
Pointer org.hfbk.vid.AVAudioThread.decoded [package] |
Definition at line 31 of file AVAudioThread.java.
Referenced by org.hfbk.vid.AVAudioThread.AVAudioThread(), org.hfbk.vid.AVAudioThread.close(), and org.hfbk.vid.AVAudioThread.decodeAudio().
int org.hfbk.vid.AVAudioThread.time [package] |
Definition at line 33 of file AVAudioThread.java.
Referenced by org.hfbk.vid.AVAudioThread.AVAudioThread(), and org.hfbk.vid.AVStreamingThread.AVStreamingThread().