aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/util/av/NullAudioSink.java
blob: cef1c3361a159f218390800f443835a346b190b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package jogamp.opengl.util.av;


import com.jogamp.opengl.util.av.AudioSink;

public class NullAudioSink implements AudioSink {

    @Override
    public boolean isInitialized() {
        return true;
    }

    @Override
    public AudioDataFormat getPreferredFormat() {
        return DefaultFormat;
    }

    @Override
    public AudioDataFormat initSink(AudioDataFormat requestedFormat, int bufferCount) {
        return requestedFormat;
    }
    
    @Override
    public void destroy() {
    }
    
    @Override
    public int getQueuedByteCount() {
        return 0;
    }
    
    @Override
    public int getQueuedTime() {
        return 0;
    }

    @Override
    public int getWritableBufferCount() {
        return 1;        
    }
    
    @Override
    public boolean isDataAvailable(int data_size) {
        return false;
    }

    @Override
    public void writeData(AudioFrame audioFrame) {
    }
}