Mercurial > hg > jslab
comparison src/samer/audio/LineSource.java @ 1:5df24c91468d
Oh my what a mess.
author | samer |
---|---|
date | Fri, 05 Apr 2019 16:26:00 +0100 |
parents | bf79fb79ee13 |
children |
comparison
equal
deleted
inserted
replaced
0:bf79fb79ee13 | 1:5df24c91468d |
---|---|
36 /** Create LineSource reading from given TargetDataLine */ | 36 /** Create LineSource reading from given TargetDataLine */ |
37 public LineSource(TargetDataLine l,AudioFormat f) throws Exception { | 37 public LineSource(TargetDataLine l,AudioFormat f) throws Exception { |
38 super("linein"); line=l; fmt=f; | 38 super("linein"); line=l; fmt=f; |
39 } | 39 } |
40 | 40 |
41 public int getChannels() { return fmt.getChannels(); } | |
42 public float getRate() { return fmt.getFrameRate(); } | |
43 public AudioFormat getFormat() { return fmt; } | |
41 public void setBufferSize(int b) { bufsize=b; } | 44 public void setBufferSize(int b) { bufsize=b; } |
42 | 45 |
43 public DataLine getLine() { return line; } | 46 public DataLine getLine() { return line; } |
44 public boolean isOpen() { return line.isOpen(); } | 47 public boolean isOpen() { return line.isOpen(); } |
45 | 48 |