app/src/main/java/com/example/brian/cantone/AudioRecorder.java
/**
     * Start playing the recorded audio. If audio does not exist, displays error message.
     */
Start playing the recorded audio. If audio does not exist, displays error message.
Start playing the recorded audio . If audio does not exist displays error message .
public void startPlaying() {
        player = new MediaPlayer();
        try {
            player.setDataSource(outputFile);
            player.prepare();
            player.start();
        } catch (IOException e) {
            Log.e(LOG_TAG, "prepare() playing audio failed");
        }
    }
public void startPlaying ( ) { player = new MediaPlayer ( ) ; try { player . setDataSource ( outputFile ) ; player . prepare ( ) ; player . start ( ) ; } catch ( IOException e ) { Log . e ( LOG_TAG , "prepare() playing audio failed" ) ; } }
Start playing the recorded audio.
Start playing the recorded audio .