cabuhatprince / splmeter Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/splmeter
Automatically exported from code.google.com/p/splmeter
What steps will reproduce the problem?
1. execute the splmeter,and see the spl value(dB) was showed on screen.
2. exit splmeter
3. start splmeter again,but nothing was showed on screen
What is the expected output? What do you see instead?
if i restart the splmeter app,i should see the spl value.
But it didn't show it.
What version of the product are you using? On what operating system?
splmeter 2.0 on HTC HERO
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 12 Mar 2010 at 8:41
According to Wikipedia[1] sound pressure in air (Pref) is 20 µPa = 0.00002 Pa,
but in code other constant is used:
private static final double P0 = 0.000002;
[1] http://en.wikipedia.org/wiki/Sound_pressure#Sound_pressure_level
Original issue reported on code.google.com by [email protected]
on 9 May 2011 at 4:18
sometimes when i executed the splmeter,
the spl value will be not showing on the screen,
even exit the application,too
but sometimes execution correctly.
thanks!
Original issue reported on code.google.com by [email protected]
on 6 Mar 2010 at 12:48
[deleted issue]
java.lang.NumberFormatException: -Infinity
please help
Original issue reported on code.google.com by [email protected]
on 17 Jul 2012 at 2:42
What steps will reproduce the problem?
1. Selecting slow mode does not seem to work
2.
3.
What is the expected output? What do you see instead?
No change in the response time
What version of the product are you using? On what operating system?
SPL V2.8, Droid2, System v2.3.20.A955, Android v2.2
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 Nov 2010 at 9:49
This is more of a solution than a bug report. Apologies for not sending a
proper patch file.
This code base worked for me on my HTC Dream and Magic, but doesn't work
properly in the emulators (lots of error logs), and doesn't report any audio at
all for the nexus one.
This is using SVN checkout revision 32.
There are three main problems:
1) The buffer size is too small (BUFFSIZE on line 48 of splEngine.java)
2) A magic "8000" is passed into the AudioRecord constructor (line 350-351 of splEngine.java) where the buffer size should be used.
3) The frequency should be 44100 for better accuracy (FREQUENCY on line 43 of splEngine.java)
1 - I'm not sure why this code works on the Dream and Magic, but it technically
shouldn't. The buffer size of 320 is smaller than the required 4096 for those
devices. It's also smaller than the value required by the emulators and the
nexus one (640 and 8192 respectfully). This is solved by making the buffer size
equal to:
AudioRecord.getMinBufferSize(FREQUENCY, CHANNEL, ENCODING);
2 - that 8000 should be the buffer size. This is why you don't get any audio
information on the Nexus one. It requires at least 8192 for the buffer size,
and the magic 8000 prevents the AudioRecord instance from being created
properly.
3 - I'm guessing the reason you used the small buffer was to get more frequent
polling. With a buffer size of 8192 and a frequency of 8000, you'd have more
than a second delay in your audio processing. This can be rectified by changing
the frequency to 44100 (which is also one of the values suggested by Google).
There will still be a tiny delay, but it should be more than good enough.
I discovered these while writing a small audio capture test application that I
based on your code. After these three modifications, my application ran on all
devices I could throw it at without errors (Dream, Magic, Nexus one, and every
emulator currently available in the SDK). It also updates faster and seems to
give more accurate results.
Cheers, hope this helps
Original issue reported on code.google.com by [email protected]
on 16 Jun 2010 at 4:37
What steps will reproduce the problem?
1. Open Application
2. Go through calibration procedure
3. Exit Applicaiton
4. Start Application again
What is the expected output? What do you see instead?
I expect to see the same level I just calibrated. Instead I see the
uncalibrated levels.
What version of the product are you using? On what operating system?
SPL Meter Full Version 2.2 On Nexus One Android 2.1
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 Mar 2010 at 10:55
What steps will reproduce the problem?
1. Install from market (android 1.5, tmobile pulse)
2. Run application
3. It forces close
What is the expected output? What do you see instead?
Working application
What version of the product are you using? On what operating system?
whatever version is on market
Original issue reported on code.google.com by [email protected]
on 3 Apr 2010 at 1:10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.