diff src/samer/audio/StreamSource.java @ 3:15b93db27c04

Get StreamSource to compile, update args for demo
author samer
date Fri, 05 Apr 2019 17:00:18 +0100
parents 5df24c91468d
children
line wrap: on
line diff
--- a/src/samer/audio/StreamSource.java	Fri Apr 05 16:43:56 2019 +0100
+++ b/src/samer/audio/StreamSource.java	Fri Apr 05 17:00:18 2019 +0100
@@ -119,6 +119,9 @@
 	/** Returns number of bytes available in current file */
 	public int available() throws Exception { return in.available(); }
 
+	public float getRate()     { return source.getFormat().getFrameRate(); }
+	public int   getChannels() { return source.getFormat().getChannels(); }
+
 	private void setChunkSize(int s) { chunk=s; }
 	private void setByteBuffer() {
 		byte_buf = new byte[2*chunk*(channelsToMix>0 ? channelsToMix : 1)];