()
| 142 | } |
| 143 | |
| 144 | private void closeLine() { |
| 145 | if (line == null) |
| 146 | return; |
| 147 | line.stop(); |
| 148 | line.close(); |
| 149 | |
| 150 | if (System.currentTimeMillis() - recordingStarted > 250) |
| 151 | callback.done(tmpFile); |
| 152 | recordingStarted = 0; |
| 153 | |
| 154 | line = null; |
| 155 | } |
| 156 | |
| 157 | private void stopRecording() { |
| 158 | if (!recording) |