I think the core is done. Now we polish.
One major issue: I don't seem to have good control over how much of the audio gets buffered. Unclear what I can do about that..
2ELOFNFZIM4RVILKIXDKKWPE6CVSWGI36HJPCV4JU5Z5TV2AYPCAC
play = function(word_idx)
if Words[word_idx].recording then
Playing_source = love.audio.newSource(Words[word_idx].recording)
elseif exists(Words[word_idx].contents..'.wav') then
Words[word_idx].recording = love.sound.newSoundData(Words[word_idx].contents..'.wav')
Playing_source = love.audio.newSource(Words[word_idx].recording)
else
Playing_source = love.audio.newSource('sample.wav', 'static')
end
Playing_source:play()
Recording_device = nil
end
{"learn_key_release":61,"new_word":64,"draw_record_button":140,"draw_play_button":141,"file_exists":176,"Playing_source":126,"on_new_word_button":118,"exists":175,"Recording_device":132,"on_word":80,"Mode":2,"on":1,"draw_teach_screen":110,"Recording_word":138,"record":172,"on.draw":5,"on.initialize":7,"Words":12,"draw_teach_word":68,"on_play":96,"draw_learn_screen":4,"Font_height":8,"fw_app":"spell-cards","on_record":95,"learn_keychord_press":59,"play":177,"teach_mouse_release":46,"teach_keychord_press":47,"teach_mouse_press":88,"teach_key_release":56,"Line_height":9,"teach_text_input":49,"to_word_idx":94,"learn_mouse_release":58,"draw_recording_button":133,"on.mouse_press":51,"fw_parent":176,"on.mouse_release":52,"draw_new_word_button":117,"on.keychord_press":53,"learn_mouse_press":57,"on.key_release":55,"save_wav":171,"on.text_input":54,"draw_playing_button":130,"Cursor_word":24,"learn_text_input":60}
{"learn_key_release":61,"new_word":64,"draw_record_button":140,"draw_play_button":141,"file_exists":176,"Playing_source":126,"on_new_word_button":118,"exists":175,"Recording_device":132,"on_word":80,"Mode":2,"on":1,"draw_teach_screen":110,"Recording_word":138,"record":172,"on.draw":5,"on.initialize":7,"Words":12,"draw_teach_word":68,"on_play":96,"draw_learn_screen":4,"Font_height":8,"fw_app":"spell-cards","on_record":95,"learn_keychord_press":59,"play":174,"teach_mouse_release":46,"teach_keychord_press":47,"teach_mouse_press":88,"teach_key_release":56,"Line_height":9,"teach_text_input":49,"to_word_idx":94,"learn_mouse_release":58,"draw_recording_button":133,"on.mouse_press":51,"fw_parent":175,"on.mouse_release":52,"draw_new_word_button":117,"on.keychord_press":53,"learn_mouse_press":57,"on.key_release":55,"save_wav":171,"on.text_input":54,"draw_playing_button":130,"Cursor_word":24,"learn_text_input":60}
file_exists = function(filename)
return love.filesystem.getInfo(filename, 'file')
end
{"learn_key_release":61,"new_word":64,"draw_record_button":140,"draw_play_button":141,"Playing_source":126,"on_new_word_button":118,"exists":175,"Recording_device":132,"on_word":80,"Mode":2,"on":1,"draw_teach_screen":110,"Recording_word":138,"record":172,"on.draw":5,"on.initialize":7,"Words":12,"draw_teach_word":68,"on_play":96,"draw_learn_screen":4,"Font_height":8,"fw_app":"spell-cards","on_record":95,"learn_keychord_press":59,"play":174,"teach_mouse_release":46,"teach_keychord_press":47,"teach_mouse_press":88,"teach_key_release":56,"Line_height":9,"teach_text_input":49,"to_word_idx":94,"learn_mouse_release":58,"draw_recording_button":133,"on.mouse_press":51,"fw_parent":174,"on.mouse_release":52,"draw_new_word_button":117,"on.keychord_press":53,"learn_mouse_press":57,"on.key_release":55,"save_wav":171,"on.text_input":54,"draw_playing_button":130,"Cursor_word":24,"learn_text_input":60}
exists = function(filename)
end