See http://mabboud.net/android-tonebuzzer-generator/ for usage details
Add compile 'net.mabboud:android-tone-player:0.3' to gradle build file to use
License: GNU Lesser General Public License v3.0
See http://mabboud.net/android-tonebuzzer-generator/ for usage details
Add compile 'net.mabboud:android-tone-player:0.3' to gradle build file to use
I need a tone only in left or right. I will try to override playSound in a child class and set volume differently, but it would be great if you can add this option.
No matter if you pause the thread, or set pause intervals. The tone will stop in a few seconds.
OneTimeBuffer is working well.
Thanks for this lib.
I was wondering if there is a way to increase/decrease volume or frequency during playback.
So far I manage to do this using ContinuousBuzzer
and setting buzzer.setPausePeriodSeconds(1);
Then on button click event I increase the volume (or frequency) like this buzzer.setToneFreqInHz(freq+=30);
Which works but I experience clipping issues every 1 seconds (which is kind of expected I guess since the playback stops and restarts every 1 secs)
So I guess my question comes down to whether I can control volume or frequency in a smooth continuous sound without clipping issues or interruptions.
Player state is modified both on the main thread and the background player thread. A specific example where this is a problem: calling #play ends up starting a thread that modifies the audioTrack instance field, and calling #stop modifies the same instance field on whatever thread it's called from (probably the main thread). This will result in NPEs if you play / stop with the correct timing.
I want to use this library in my project but can't because I don't want to share my source codes but according to LGPL I should. Is it possible to make it Apache 2.0?
I get no sound from this or other examples on the web using AudioTrack to play back samples. I see this error in the logcat but I cannot make any sense of what needs to be changed.
12-09 17:09:28.451 25540 25575 W AudioTrack: Use of stream types is deprecated for operations other than volume control
12-09 17:09:28.452 25540 25575 W AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
I've had a look at the below Android developer documentation page and I still have no idea:
Hi Maddie. We are looking for developer to make similar library for Android you made but with larger set or functional. Would you be interested to work on short term project?
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.