Sam Kostler

Greenhorn
+ Follow
since Jan 20, 2013
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sam Kostler

After a false start and going back to the beginning I'm comfortably getting code to run but I'm running into a problem with what I need my program to do and whether Android and the available hardware are able to do it.

I'm looking to input and output an audio stream and get under 25ms (perhaps 50ms if I really push it) round trip from mic to speaker combined with the ability to set the delay from 25ms (or 50ms) to 300ms with +-1ms granularity. I'm getting far too high of latency on my Gingerbread (2.3.5) phone (Samsung Exhibit II 4g - SGH-T679) using AudioTrack() and AudioRecord(). I've looked into OpenSL and from what I've read I wouldn't be able to get down to an acceptable latency. I've read that with Android 4.1 and OpenSL the latency is significantly reduced, but there seems to be some question as to the amount of reduction.

Does anyone have any advice or information they can point me to?

If I'm just doing it wrong can someone set me straight on how to achieve the latency I need?

If there's no other way I'm willing to put perhaps $250 towards a new device if it's a certainty that I can hit my benchmarks with it, is there a device someone can recommend which would work for what I'm doing?

Thanks!
5 years ago
Thanks, I still haven't gotten it quite working, but I think I just need to step back and go through some tutorials again so I can better understand the grammar of the language (I'm not sure if that's the right word, but it seems like it fits).

I think I expected a lot more of what I knew to translate between languages and I didn't spend enough time on the basics.

Any recommendations for tutorial series' which spend a lot of time on the structure of the language as opposed to logic, variables, and conditional statements?

Thanks again!
5 years ago
Thanks very much!

I'll give that a shot and see if I can't get it working.

I hate to bug you, but everything I've done with programming up until this has involved functions. Would you mind explaining, or pointing me to an explanation of what a class is and how it differs from a function? Also, what exactly is an activity and why do class blocks of code *have* to be in separate ones? Lastly, am I totally missing something about Java and Javascript? When I found Android used Java I was relieved since I'm reasonably comfortable with Javascript (well, really with Apps Script, but it's based on Javascript), but for the life of me I can't figure out the similarities.

Thanks again!
5 years ago
So, I'm merely a hobbyist, I write applications because I need to use them. For the most part I've been successful at successfully completing projects with the languages I've poked around with, but for some reason Java is really not connecting with me.

I found this code example:

http://stackoverflow.com/questions/6959930/android-need-to-record-mic-input

I get it. I understand what's happening there. I have no idea, however, how I go about using it in a project. I feel like a moron for not being able to figure out what ought to be the simplest part of this process. I've worked through tutorials, I have other applications running, but I just cannot suss out where to put this or how to access it. Perhaps it's just one of those days and tomorrow it'll be crystal clear, but right now I'm deeply frustrated and could really use just a little help on this.

Thanks!
5 years ago