comparison java/src/com/aurellem/send/AudioSend.java @ 13:92b416b4e027

fixed all problems for 16 bit mono output
author Robert McIntyre <rlm@mit.edu>
date Mon, 31 Oct 2011 07:44:02 -0700
parents 37f25cb34196
children 22ac5a0367cd
comparison
equal deleted inserted replaced
12:9558b856ebdf 13:92b416b4e027
1 package com.aurellem.send; 1 package com.aurellem.send;
2 2
3 import java.nio.ByteBuffer; 3 import java.nio.ByteBuffer;
4
5 import javax.sound.sampled.AudioFormat;
4 6
5 public class AudioSend { 7 public class AudioSend {
6 8
7 private final long deviceID; 9 private final long deviceID;
8 10
73 */ 75 */
74 public void setNthListenerf(int pname, float v1, int contextNum){ 76 public void setNthListenerf(int pname, float v1, int contextNum){
75 nsetNthListenerf(pname, v1, this.deviceID, contextNum);} 77 nsetNthListenerf(pname, v1, this.deviceID, contextNum);}
76 public static native void nsetNthListenerf(int pname, float v1, long device, int contextNum); 78 public static native void nsetNthListenerf(int pname, float v1, long device, int contextNum);
77 79
80
81 /**
82 * Retrieve the AudioFormat which the device is using. This format is itself derived
83 * from the OpenAL config file under the "format" variable.
84 */
85 public AudioFormat getAudioFormat(){
86 return ngetAudioFormat(this.deviceID);}
87 public static native AudioFormat ngetAudioFormat(long device);
88
89
90
78 } 91 }