Finds threat start and location of microphone recording in a data frame, and plays the audio from the start of the threat, using 'play_audio_section'. Expects columns 'threat_appear_time', 'start_time', 'mic.wav_location_0'.

play_audio_from_threat(df, data_dir, drop_tld = TRUE)

Arguments

df

A trial results data frame

data_dir

The path to the data directory.

drop_tld

Drop top-level directory in stored file location? (default TRUE)

Value

Returns no value