See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
#!/usr/bin/env bash | |
# | |
# clean-snap-sync-external.sh v1.0.1 (2021-07-09) | |
# | |
# Changes | |
# ------- | |
# 2021-07-09: | |
# - adjust logic to keep latest x, instead of delete oldest x | |
# - make output cleaner (hide btrfs subvolume delete output) | |
# |
Note: This is the guide for v 2.x.
For the v3, please follow this url: https://blog.csdn.net/sam_shan/article/details/80585240 Thanks @liy-cn for contributing.
Download: StarUML.io
Source: jorgeancal
ShortBuffer mSamples; // the samples to play | |
int mNumSamples; // number of samples to play | |
void playAudio() { | |
new Thread(new Runnable() { | |
@Override | |
public void run() { | |
int bufferSize = AudioTrack.getMinBufferSize(SAMPLE_RATE, AudioFormat.CHANNEL_OUT_MONO, | |
AudioFormat.ENCODING_PCM_16BIT); | |
if (bufferSize == AudioTrack.ERROR || bufferSize == AudioTrack.ERROR_BAD_VALUE) { |