summaryrefslogtreecommitdiffstats
path: root/test/src/com/jogamp/openal/ALTest.java
blob: 45b7995bb4caa2c41928e7de82fbc41ee5fde7fc (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
/*
 * Created on Jun 3, 2003
 *
 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.jogamp.openal;

import java.io.IOException;

import javax.sound.sampled.UnsupportedAudioFileException;

import junit.framework.TestCase;
import com.jogamp.openal.util.*;

/**
 * @author Athomas Goldberg
 *
 */
public class ALTest extends TestCase {


    static AL al;
    static ALC alc;
    static ALCcontext context;
    static ALCdevice device;
    final static String TEST_FILE ="lewiscarroll.wav";

    /**
     * Constructor for ALTest.
     * @param arg0
     */
    public ALTest(String arg0) {
        super(arg0);
    }

    public void setUp() {
    	try {
			al = ALFactory.getAL();
			alc = ALFactory.getALC();
			device = alc.alcOpenDevice(null);
			context = alc.alcCreateContext(device, null);
			alc.alcMakeContextCurrent(context);
        } catch (ALException e) {
            e.printStackTrace();
        }
    }

    public void tearDown() {
        alc.alcMakeContextCurrent(null);
        alc.alcDestroyContext(context);
        alc.alcCloseDevice(device);
    }

    public static void main(String[] args) {
        System.out.println("begin main");
        junit.textui.TestRunner.run(ALTest.class);
        System.out.println("end main");
    }

    /*
     * Test for void alGenBuffers(int, IntBuffer)
     *//*
    final public void testAlGenBuffersintIntBuffer() {
        System.out.println("begin testAlGenBuffersintintBuffer");
        // try basic case
        try {
            IntBuffer buffers = BufferUtils.newIntBuffer(7);
            al.alGenBuffers(7,buffers);
            for(int i = 0; i < 7; i++) {
                assertFalse(buffers.get(i) == 0);
                assertTrue(al.alIsBuffer(buffers.get(i)));
            }
        } catch (Exception e) {
            fail(e.getMessage());
        }
        
        Exception ex = null;
        // buffers == null
        try {
            IntBuffer buffers = null;
            al.alGenBuffers(7,buffers);
            
            
        } catch(IllegalArgumentException e) {
            ex = e;
        }
        assertNotNull(ex);        

        ex = null;
        // buffer too small
        try {
            IntBuffer buffers = BufferUtils.newIntBuffer(5);
            al.alGenBuffers(7,buffers);
        } catch(IllegalArgumentException e) {
            ex = e;
        }
        assertNotNull(ex);

        ex = null;
        // buffer not direct
        try {
            IntBuffer buffers = IntBuffer.allocate(7);
            al.alGenBuffers(7,buffers);
        } catch(IllegalArgumentException e) {
            ex = e;
        }
        assertNotNull(ex);
        System.out.println("end testAlGenBuffersintintBuffer");
    }
*/
    /*
     * Test for void alGenBuffers(int, int[])
     */
    final public void testAlGenBuffersintintArray() {
        
        System.out.println("begin testAlGenBuffersintintArray");
        // try basic case
        try {
            int[] buffers = new int[7];
            al.alGenBuffers(7,buffers, 0);
            for(int i = 0; i < 7; i++) {
                assertFalse(buffers[i] == 0);
                assertTrue(al.alIsBuffer(buffers[i]));
            }
        } catch (Exception e) {
            fail(e.getMessage());
        }
        
        Exception ex = null;
        // try exceptions
        try {
            int[] buffers = null;
            al.alGenBuffers(7,buffers, 0);
            
            
        } catch(IllegalArgumentException e) {
            ex = e;
        }
        assertNotNull(ex);        
        ex = null;
        try {
            int[] buffers = new int[5];
            al.alGenBuffers(7,buffers, 0);
        } catch(IllegalArgumentException e) {
            ex = e;
        }
        assertNotNull(ex);
        
        System.out.println("end testAlGenBuffersintintArray");
        
    }

    /*
     * Test for void alDeleteBuffers(int, IntBuffer)
     */
    final public void testAlDeleteBuffersintIntBuffer() {
        System.out.println("begin testAlDeleteBuffersintintArray");
        // try basic case
        try {
            int[] buffers = new int[7];
            al.alGenBuffers(7,buffers,0);
            for(int i = 0; i < 7; i++) {
                assertFalse(buffers[i] == 0);
                assertTrue(al.alIsBuffer(buffers[i]));
            }
            al.alDeleteBuffers(7,buffers,0);
            for(int i = 0; i < 7; i++) {
                assertFalse(al.alIsBuffer(buffers[i]));
            }
        } catch (Exception e) {
            fail(e.getMessage());
        }
        
        Exception ex = null;
        // try exceptions
        try {
            al.alDeleteBuffers(7,(int[])null, 0);
        } catch(IllegalArgumentException e) {
            ex = e;
        }
        assertNotNull(ex);
        ex = null;
        try {
            int[] buffers = new int[5];
            al.alGenBuffers(5,buffers,0);
            al.alDeleteBuffers(7,buffers,0);
        } catch(IllegalArgumentException e) {
            ex = e;
        }
        assertNotNull(ex);
        
        try {
            int[] buffers = new int[7];
            al.alDeleteBuffers(7,buffers,0);
            assertTrue(al.alGetError() != 0);
        } catch(Exception e) {
            fail("deleting an unfilled buffer list should generate an ALError but not an exception");
        }
        
        System.out.println("end testAlDeleteBuffersintintArray");
    }

    /*
     * Test for void alDeleteBuffers(int, int[])
     */
    final public void testAlDeleteBuffersintintArray() {
        System.out.println("begin testAlDeleteBuffersintIntBuffer");
        // try basic case
        try {
            int[] buffers = new int[7];
            al.alGenBuffers(7,buffers,0);
            for(int i = 0; i < 7; i++) {
                assertFalse(buffers[i] == 0);
                assertTrue(al.alIsBuffer(buffers[i]));
            }
            al.alDeleteBuffers(7,buffers,0);
            for(int i = 0; i < 7; i++) {
                assertFalse(al.alIsBuffer(buffers[i]));
            }
        } catch (Exception e) {
            fail(e.getMessage());
        }
        
        Exception ex = null;
        // try exceptions
        try {
            al.alDeleteBuffers(7,(int[])null,0);
        } catch(IllegalArgumentException e) {
            ex = e;
        }
        assertNotNull(ex);
        ex = null;
        try {
            int[] buffers = new int[5];
            al.alGenBuffers(5,buffers,0);
            al.alDeleteBuffers(7,buffers,0);
        } catch(IllegalArgumentException e) {
            ex = e;
        }
        assertNotNull(ex);
        
        ex = null;
        try {
            int[] buffers = new int[5];
            al.alDeleteBuffers(7,buffers,0);
        } catch(IllegalArgumentException e) {
            ex = e;
        }
        assertNotNull(ex);
        
        try {
            int[] buffers = new int[7];
            al.alDeleteBuffers(7,buffers,0);
            assertTrue(al.alGetError() != 0);
        } catch(Exception e) {
            fail("deleting an unfilled buffer list should generate an ALError but not an exception");
        }
        
        System.out.println("end testAlDeleteBuffersintintArray");
    }

    final public void testAlIsBuffer() {
        System.out.println("begin testALIsBuffer");
        try {
            // check a bufferlist with known bad values
            int[] buffers = new int[7];
            for(int i = 0; i < 7; i++) {
                buffers[i] = -1;
                assertFalse(al.alIsBuffer(buffers[i]));
            }
            // created 
            al.alGenBuffers(7,buffers,0);
            for(int i = 0; i < 7; i++) {
                assertTrue(al.alIsBuffer(buffers[i]));
            }
            // deleted
            al.alDeleteBuffers(7,buffers,0);
            for(int i = 0; i < 7; i++) {
                assertFalse(al.alIsBuffer(buffers[i]));
            }            
        } catch (Exception e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
        System.out.println("end testALisBuffer");
    }

    /*
     * Test for void alBufferData(int, int, Buffer, int, int)
     */
    final public void testAlBufferDataintintByteBufferintint() {
        System.out.println("begin testAlBufferDataintintByteBufferintint");
        try {
            int[] buffers = new int[1];
            al.alGenBuffers(1, buffers, 0);
            WAVData wd =
                WAVLoader.loadFromFile(TEST_FILE);
            al.alBufferData(
                buffers[0],
                wd.format,
                wd.data,
                wd.size,
                wd.freq
            );
            int[] tmp = new int[1];
            al.alGetBufferi(buffers[0],AL.AL_SIZE,tmp,0);
            assertFalse(tmp[0] == 0);
        } catch(Exception e) {
            fail(e.toString());
        }
        Exception ex = null;
        try {
            int[] buffers = new int[1];
            al.alGenBuffers(1, buffers, 0);

            al.alBufferData(
                buffers[0],
                AL.AL_FORMAT_STEREO16,
                null,
                0,
                0
            );
        } catch(IllegalArgumentException e) {
            ex = e;
        }
        assertNotNull(ex);
        
        System.out.println("end testAlBufferDataintintByteBufferintint");
    }

    /*
     * Test for void alGetBufferf(int, int, float[])
     */
    final public void testAlGetBufferfintintfloatArray() {
        System.out.println("begin testAlGetBufferfintintfloatArray");
        
        // there are currently NO float attributes for buffers.
        
        System.out.println("end testAlGetBufferfintintfloatArray");
    }

    /*
     * Test for void alGetBufferf(int, int, FloatBuffer)
     */
    final public void testAlGetBufferfintintFloatBuffer() {
        System.out.println("begin testAlGetBufferfintintFloatBuffer");
        
        // there are currently NO float attributes for buffers.
        
        System.out.println("end testAlGetBufferfintintFloatBuffer");
    }

    /*
     * Test for float alGetBufferf(int, int)
     */
    final public void testAlGetBufferfintint() {
        System.out.println("begin testAlGetBufferfintintFloatBuffer");
        
        // there are currently NO float attributes for buffers.
        
        System.out.println("end testAlGetBufferfintintFloatBuffer");
    }

    /*
     * Test for void alGetBufferi(int, int, int[])
     */
    final public void testAlGetBufferiintintintArray() {
        System.out.println("begin testAlGetBufferiintintintArray");
        try {
            int[] buffers = new int[1];
            al.alGenBuffers(1, buffers, 0);
            WAVData wd =
                WAVLoader.loadFromFile(TEST_FILE);
            al.alBufferData(
                buffers[0],
                wd.format,
                wd.data,
                wd.size,
                wd.freq
            );
            int[] size = new int[1];
            int[] freq = new int[1];
            al.alGetBufferi(buffers[0],AL.AL_SIZE, size, 0);
            al.alGetBufferi(buffers[0],AL.AL_FREQUENCY, freq, 0);
            assertEquals(wd.size, size[0]);
            assertEquals(wd.freq, freq[0]);
        } catch(Exception e) {
            fail(e.toString());
        }
        
        Exception ex = null;
        try {
            int[] buffers = new int[1];
            al.alGenBuffers(1, buffers, 0);
            WAVData wd =
                WAVLoader.loadFromFile(TEST_FILE);
            al.alBufferData(
                buffers[0],
                wd.format,
                wd.data,
                wd.size,
                wd.freq
            );
            int[] size = null;
            al.alGetBufferi(buffers[0],AL.AL_SIZE, size, 0);
           
        } catch (IllegalArgumentException e) {
            ex = e;
        } catch (UnsupportedAudioFileException e) {
            e.printStackTrace();
            fail(e.getMessage());
        } catch (IOException e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
        
        assertNotNull(ex);
        
        System.out.println("end testAlGetBufferiintintintArray");
    }

    /*
     * Test for void alGetBufferi(int, int, IntBuffer)
     */
    final public void testAlGetBufferiintintIntBuffer() {
        try {
            int[] buffers = new int[1];
            al.alGenBuffers(1, buffers, 0);
            WAVData wd =
                WAVLoader.loadFromFile(TEST_FILE);
            al.alBufferData(
                buffers[0],
                wd.format,
                wd.data,
                wd.size,
                wd.freq
            );
            int[] size = new int[1];
            int[] freq = new int[1];
            al.alGetBufferi(buffers[0],AL.AL_SIZE, size, 0);
            al.alGetBufferi(buffers[0],AL.AL_FREQUENCY, freq, 0);
            assertEquals(wd.size, size[0]);
            assertEquals(wd.freq, freq[0]);
        } catch(Exception e) {
            fail(e.toString());
        }
        Exception ex = null;
        try {
            int[] buffers = new int[1];
            al.alGenBuffers(1, buffers, 0);
            WAVData wd =
                WAVLoader.loadFromFile(TEST_FILE);
            al.alBufferData(
                buffers[0],
                wd.format,
                wd.data,
                wd.size,
                wd.freq
            );
            int[] size = null;
            al.alGetBufferi(buffers[0],AL.AL_SIZE, size, 0);
           
        } catch (IllegalArgumentException e) {
            ex = e;
        } catch (UnsupportedAudioFileException e) {
            e.printStackTrace();
            fail(e.getMessage());
        } catch (IOException e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
        
        assertNotNull(ex);
        ex = null;
         try {
             int[] buffers = new int[1];
             al.alGenBuffers(1, buffers, 0);
             WAVData wd =
                 WAVLoader.loadFromFile(TEST_FILE);
             al.alBufferData(
                 buffers[0],
                 wd.format,
                 wd.data,
                 wd.size,
                 wd.freq
             );
             int[] size = new int[1];
             al.alGetBufferi(buffers[0],AL.AL_SIZE, size, 0);
           
         } catch (IllegalArgumentException e) {
             ex = e;
         } catch (UnsupportedAudioFileException e) {
             e.printStackTrace();
             fail(e.getMessage());
         } catch (IOException e) {
             e.printStackTrace();
             fail(e.getMessage());
         }
        
//         assertNotNull(ex);
    }

    /*
     * Test for int alGetBufferi(int, int)
     */
    final public void testAlGetBufferiintint() {
        //TODO Implement alGetBufferi().
    }

    /*
     * Test for void alGenSources(int, int[])
     */
    final public void testAlGenSourcesintintArray() {
        //TODO Implement alGenSources().
    }

    /*
     * Test for void alGenSources(int, IntBuffer)
     */
    final public void testAlGenSourcesintIntBuffer() {
        //TODO Implement alGenSources().
    }

    /*
     * Test for void alDeleteSources(int, int[])
     */
    final public void testAlDeleteSourcesintintArray() {
        //TODO Implement alDeleteSources().
    }

    /*
     * Test for void alDeleteSources(int, IntBuffer)
     */
    final public void testAlDeleteSourcesintIntBuffer() {
        //TODO Implement alDeleteSources().
    }

    final public void testAlIsSource() {
        //TODO Implement alIsSource().
    }

    final public void testAlSourcei() {
        //TODO Implement alSourcei().
    }

    final public void testAlSourcef() {
        //TODO Implement alSourcef().
    }

    /*
     * Test for void alSourcefv(int, int, float[])
     */
    final public void testAlSourcefvintintfloatArray() {
        //TODO Implement alSourcefv().
    }

    /*
     * Test for void alSourcefv(int, int, FloatBuffer)
     */
    final public void testAlSourcefvintintFloatBuffer() {
        //TODO Implement alSourcefv().
    }

    final public void testAlSource3f() {
        //TODO Implement alSource3f().
    }

    /*
     * Test for void alGetSourcef(int, int, float[])
     */
    final public void testAlGetSourcefintintfloatArray() {
        //TODO Implement alGetSourcef().
    }

    /*
     * Test for void alGetSourcef(int, int, FloatBuffer)
     */
    final public void testAlGetSourcefintintFloatBuffer() {
        //TODO Implement alGetSourcef().
    }

    /*
     * Test for float alGetSourcef(int, int)
     */
    final public void testAlGetSourcefintint() {
        //TODO Implement alGetSourcef().
    }

    /*
     * Test for void alGetSourcefv(int, int, FloatBuffer)
     */
    final public void testAlGetSourcefvintintFloatBuffer() {
        //TODO Implement alGetSourcefv().
    }

    /*
     * Test for void alGetSourcefv(int, int, float[])
     */
    final public void testAlGetSourcefvintintfloatArray() {
        //TODO Implement alGetSourcefv().
    }

    /*
     * Test for void alGetSourcei(int, int, int[])
     */
    final public void testAlGetSourceiintintintArray() {
        //TODO Implement alGetSourcei().
    }

    /*
     * Test for void alGetSourcei(int, int, IntBuffer)
     */
    final public void testAlGetSourceiintintIntBuffer() {
        //TODO Implement alGetSourcei().
    }

    /*
     * Test for int alGetSourcei(int, int)
     */
    final public void testAlGetSourceiintint() {
        //TODO Implement alGetSourcei().
    }

    final public void testAlSourcePlay() {
        //TODO Implement alSourcePlay().
    }

    /*
     * Test for void alSourcePlayv(int, IntBuffer)
     */
    final public void testAlSourcePlayvintIntBuffer() {
        //TODO Implement alSourcePlayv().
    }

    /*
     * Test for void alSourcePlayv(int, int[])
     */
    final public void testAlSourcePlayvintintArray() {
        //TODO Implement alSourcePlayv().
    }

    final public void testAlSourcePause() {
        //TODO Implement alSourcePause().
    }

    /*
     * Test for void alSourcePausev(int, int[])
     */
    final public void testAlSourcePausevintintArray() {
        //TODO Implement alSourcePausev().
    }

    /*
     * Test for void alSourcePausev(int, IntBuffer)
     */
    final public void testAlSourcePausevintIntBuffer() {
        //TODO Implement alSourcePausev().
    }

    final public void testAlSourceStop() {
        //TODO Implement alSourceStop().
    }

    /*
     * Test for void alSourceStopv(int, int[])
     */
    final public void testAlSourceStopvintintArray() {
        //TODO Implement alSourceStopv().
    }

    /*
     * Test for void alSourceStopv(int, IntBuffer)
     */
    final public void testAlSourceStopvintIntBuffer() {
        //TODO Implement alSourceStopv().
    }

    final public void testAlSourceRewind() {
        //TODO Implement alSourceRewind().
    }

    /*
     * Test for void alSourceRewindv(int, int[])
     */
    final public void testAlSourceRewindvintintArray() {
        //TODO Implement alSourceRewindv().
    }

    /*
     * Test for void alSourceRewindv(int, IntBuffer)
     */
    final public void testAlSourceRewindvintIntBuffer() {
        //TODO Implement alSourceRewindv().
    }

    /*
     * Test for void alSourceQueueBuffers(int, int, int[])
     */
    final public void testAlSourceQueueBuffersintintintArray() {
        //TODO Implement alSourceQueueBuffers().
    }

    /*
     * Test for void alSourceQueueBuffers(int, int, IntBuffer)
     */
    final public void testAlSourceQueueBuffersintintIntBuffer() {
        //TODO Implement alSourceQueueBuffers().
    }

    /*
     * Test for void alSourceUnqueueBuffers(int, int, int[])
     */
    final public void testAlSourceUnqueueBuffersintintintArray() {
        //TODO Implement alSourceUnqueueBuffers().
    }

    /*
     * Test for void alSourceUnqueueBuffers(int, int, IntBuffer)
     */
    final public void testAlSourceUnqueueBuffersintintIntBuffer() {
        //TODO Implement alSourceUnqueueBuffers().
    }

    final public void testAlListenerf() {
        //TODO Implement alListenerf().
    }

    final public void testAlListener3f() {
        //TODO Implement alListener3f().
    }

    /*
     * Test for void alListenerfv(int, float[])
     */
    final public void testAlListenerfvintfloatArray() {
        //TODO Implement alListenerfv().
    }

    /*
     * Test for void alListenerfv(int, FloatBuffer)
     */
    final public void testAlListenerfvintFloatBuffer() {
        //TODO Implement alListenerfv().
    }

    final public void testAlListeneri() {
        //TODO Implement alListeneri().
    }

    /*
     * Test for void alGetListenerf(int, float[])
     */
    final public void testAlGetListenerfintfloatArray() {
        //TODO Implement alGetListenerf().
    }

    /*
     * Test for void alGetListenerf(int, FloatBuffer)
     */
    final public void testAlGetListenerfintFloatBuffer() {
        //TODO Implement alGetListenerf().
    }

    /*
     * Test for float alGetListenerf(int)
     */
    final public void testAlGetListenerfint() {
        //TODO Implement alGetListenerf().
    }

    /*
     * Test for void alGetListener3f(int, FloatBuffer, FloatBuffer, FloatBuffer)
     */
    final public void testAlGetListener3fintFloatBufferFloatBufferFloatBuffer() {
        //TODO Implement alGetListener3f().
    }

    /*
     * Test for void alGetListener3f(int, float[], float[], float[])
     */
    final public void testAlGetListener3fintfloatArrayfloatArrayfloatArray() {
        //TODO Implement alGetListener3f().
    }

    /*
     * Test for void alGetListenerfv(int, float[])
     */
    final public void testAlGetListenerfvintfloatArray() {
        //TODO Implement alGetListenerfv().
    }

    /*
     * Test for void alGetListenerfv(int, FloatBuffer)
     */
    final public void testAlGetListenerfvintFloatBuffer() {
        //TODO Implement alGetListenerfv().
    }

    /*
     * Test for void alGetListeneri(int, int[])
     */
    final public void testAlGetListeneriintintArray() {
        //TODO Implement alGetListeneri().
    }

    /*
     * Test for void alGetListeneri(int, IntBuffer)
     */
    final public void testAlGetListeneriintIntBuffer() {
        //TODO Implement alGetListeneri().
    }

    /*
     * Test for int alGetListeneri(int)
     */
    final public void testAlGetListeneriint() {
        //TODO Implement alGetListeneri().
    }

    final public void testAlEnable() {
        //TODO Implement alEnable().
    }

    final public void testAlDisable() {
        //TODO Implement alDisable().
    }

    final public void testAlIsEnabled() {
        //TODO Implement alIsEnabled().
    }

    final public void testAlGetBoolean() {
        //TODO Implement alGetBoolean().
    }

    final public void testAlGetDouble() {
        //TODO Implement alGetDouble().
    }

    final public void testAlGetFloat() {
        //TODO Implement alGetFloat().
    }

    final public void testAlGetInteger() {
        //TODO Implement alGetInteger().
    }

    /*
     * Test for void alGetDoublev(int, DoubleBuffer)
     */
    final public void testAlGetDoublevintDoubleBuffer() {
        //TODO Implement alGetDoublev().
    }

    /*
     * Test for void alGetDoublev(int, double[])
     */
    final public void testAlGetDoublevintdoubleArray() {
        //TODO Implement alGetDoublev().
    }

    /*
     * Test for void alGetFloatv(int, FloatBuffer)
     */
    final public void testAlGetFloatvintFloatBuffer() {
        //TODO Implement alGetFloatv().
    }

    /*
     * Test for void alGetFloatv(int, float[])
     */
    final public void testAlGetFloatvintfloatArray() {
        //TODO Implement alGetFloatv().
    }

    /*
     * Test for void alGetIntegerv(int, IntBuffer)
     */
    final public void testAlGetIntegervintIntBuffer() {
        //TODO Implement alGetIntegerv().
    }

    /*
     * Test for void alGetIntegerv(int, int[])
     */
    final public void testAlGetIntegervintintArray() {
        //TODO Implement alGetIntegerv().
    }

    final public void testAlGetString() {
        //TODO Implement alGetString().
    }

    final public void testAlDistanceModel() {
        //TODO Implement alDistanceModel().
    }

    final public void testAlDopplerFactor() {
        //TODO Implement alDopplerFactor().
    }

    final public void testAlDopplerVelocity() {
        //TODO Implement alDopplerVelocity().
    }

    final public void testAlGetError() {
        //TODO Implement alGetError().
    }

    final public void testAlIsExtensionPresent() {
        //TODO Implement alIsExtensionPresent().
    }

    final public void testAlGetEnumValue() {
        //TODO Implement alGetEnumValue().
    }

}