fix rate
This commit is contained in:
parent
00e642b632
commit
bb5e6846f4
1 changed files with 7 additions and 0 deletions
|
|
@ -536,6 +536,13 @@ public class RecordingActivity extends AppCompatActivity {
|
|||
int c = Sound.DEFAULT_AUDIOFORMAT == AudioFormat.ENCODING_PCM_16BIT ? 2 : 1;
|
||||
|
||||
long perSec = (c * m * rate);
|
||||
|
||||
String ext = shared.getString(MainApplication.PREFERENCE_ENCODING, "");
|
||||
|
||||
if (shared.getBoolean(MainApplication.PREFERENCE_FLY, false)) {
|
||||
perSec = Factory.getEncoderRate(ext, sampleRate);
|
||||
}
|
||||
|
||||
long sec = free / perSec * 1000;
|
||||
|
||||
state.setText(s + "\n(" + MainApplication.formatFree(this, free, sec) + ")");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue