playing is done

This commit is contained in:
Kartik K. Agaram 2023-03-09 16:33:16 -08:00
parent 7a3382f133
commit 02181898f5
12 changed files with 27 additions and 1 deletions

1
0126-Playing_source Normal file
View File

@ -0,0 +1 @@
Playing_source = nil

1
0126-fwmanifest Normal file
View File

@ -0,0 +1 @@
{"Cursor_word":24,"on_new_word_button":118,"new_word":64,"on_word":80,"to_word_idx":94,"record":112,"draw_teach_word":68,"on_play":96,"Mode":2,"draw_teach_screen":110,"on_record":95,"draw_learn_screen":4,"teach_mouse_release":46,"on.draw":5,"teach_keychord_press":47,"Words":12,"teach_key_release":56,"fw_app":"spell-cards","teach_text_input":49,"Font_height":8,"Recording":103,"Line_height":9,"Playing":102,"draw_new_word_button":117,"learn_mouse_press":57,"learn_mouse_release":58,"draw_playing_button":122,"Playing_source":126,"learn_text_input":60,"on":1,"learn_key_release":61,"on.text_input":54,"on.keychord_press":53,"draw_play_button":75,"on.key_release":55,"on.mouse_press":51,"draw_record_button":72,"fw_parent":125,"play":113,"teach_mouse_press":88,"draw_recording_button":125,"on.initialize":7,"on.mouse_release":52,"learn_keychord_press":59}

5
0127-draw_playing_button Normal file
View File

@ -0,0 +1,5 @@
draw_playing_button = function()
if not Playing_source then return end
App.color{r=0, g=0, b=0, a=0.5}
love.graphics.polygon('fill', {30, 10, 45, 20, 30, 30})
end

1
0127-fwmanifest Normal file
View File

@ -0,0 +1 @@
{"Cursor_word":24,"on_new_word_button":118,"new_word":64,"on_word":80,"to_word_idx":94,"record":112,"draw_teach_word":68,"on_play":96,"Mode":2,"draw_teach_screen":110,"on_record":95,"draw_learn_screen":4,"teach_mouse_release":46,"on.draw":5,"teach_keychord_press":47,"Words":12,"teach_key_release":56,"fw_app":"spell-cards","teach_text_input":49,"Font_height":8,"Recording":103,"Line_height":9,"Playing":102,"draw_new_word_button":117,"learn_mouse_press":57,"learn_mouse_release":58,"draw_playing_button":127,"Playing_source":126,"learn_text_input":60,"on":1,"learn_key_release":61,"on.text_input":54,"on.keychord_press":53,"draw_play_button":75,"on.key_release":55,"on.mouse_press":51,"draw_record_button":72,"fw_parent":126,"play":113,"teach_mouse_press":88,"draw_recording_button":125,"on.initialize":7,"on.mouse_release":52,"learn_keychord_press":59}

1
0128-fwmanifest Normal file
View File

@ -0,0 +1 @@
{"Cursor_word":24,"on_new_word_button":118,"new_word":64,"on_word":80,"to_word_idx":94,"record":128,"draw_teach_word":68,"on_play":96,"Mode":2,"draw_teach_screen":110,"on_record":95,"draw_learn_screen":4,"teach_mouse_release":46,"on.draw":5,"teach_keychord_press":47,"Words":12,"teach_key_release":56,"fw_app":"spell-cards","teach_text_input":49,"Font_height":8,"Recording":103,"Line_height":9,"Playing":102,"draw_new_word_button":117,"learn_mouse_press":57,"learn_mouse_release":58,"draw_playing_button":127,"Playing_source":126,"learn_text_input":60,"on":1,"learn_key_release":61,"on.text_input":54,"on.keychord_press":53,"draw_play_button":75,"on.key_release":55,"on.mouse_press":51,"draw_record_button":72,"fw_parent":127,"play":113,"teach_mouse_press":88,"draw_recording_button":125,"on.initialize":7,"on.mouse_release":52,"learn_keychord_press":59}

4
0128-record Normal file
View File

@ -0,0 +1,4 @@
record = function(word_idx)
Recording = true
Playing_source = nil
end

1
0129-fwmanifest Normal file
View File

@ -0,0 +1 @@
{"Cursor_word":24,"on_new_word_button":118,"new_word":64,"on_word":80,"to_word_idx":94,"record":128,"draw_teach_word":68,"on_play":96,"Mode":2,"draw_teach_screen":110,"on_record":95,"draw_learn_screen":4,"teach_mouse_release":46,"on.draw":5,"teach_keychord_press":47,"Words":12,"teach_key_release":56,"fw_app":"spell-cards","teach_text_input":49,"Font_height":8,"Recording":103,"Line_height":9,"Playing":102,"draw_new_word_button":117,"learn_mouse_press":57,"learn_mouse_release":58,"draw_playing_button":127,"Playing_source":126,"learn_text_input":60,"on":1,"learn_key_release":61,"on.text_input":54,"on.keychord_press":53,"draw_play_button":75,"on.key_release":55,"on.mouse_press":51,"draw_record_button":72,"fw_parent":128,"play":129,"teach_mouse_press":88,"draw_recording_button":125,"on.initialize":7,"on.mouse_release":52,"learn_keychord_press":59}

5
0129-play Normal file
View File

@ -0,0 +1,5 @@
play = function(word_idx)
Playing_source = love.audio.newSource('sample.wav', 'static')
Playing_source:play()
Recording = false
end

6
0130-draw_playing_button Normal file
View File

@ -0,0 +1,6 @@
draw_playing_button = function()
if not Playing_source then return end
if not Playing_source:isPlaying() then Playing_source = nil end
App.color{r=0, g=0, b=0, a=0.5}
love.graphics.polygon('fill', {30, 10, 45, 20, 30, 30})
end

1
0130-fwmanifest Normal file
View File

@ -0,0 +1 @@
{"draw_teach_word":68,"on_play":96,"on.mouse_press":51,"on_record":95,"teach_mouse_release":46,"fw_app":"spell-cards","on.text_input":54,"on":1,"Recording":103,"Playing":102,"new_word":64,"draw_new_word_button":117,"learn_mouse_press":57,"learn_mouse_release":58,"draw_playing_button":130,"learn_text_input":60,"learn_key_release":61,"play":129,"draw_record_button":72,"draw_play_button":75,"learn_keychord_press":59,"on.mouse_release":52,"Mode":2,"on.key_release":55,"draw_teach_screen":110,"draw_recording_button":125,"Playing_source":126,"teach_mouse_press":88,"on.draw":5,"on_new_word_button":118,"Words":12,"fw_parent":129,"on.initialize":7,"on.keychord_press":53,"Font_height":8,"Cursor_word":24,"Line_height":9,"to_word_idx":94,"on_word":80,"teach_key_release":56,"teach_text_input":49,"record":128,"draw_learn_screen":4,"teach_keychord_press":47}

2
head
View File

@ -1 +1 @@
125
130

BIN
sample.wav Normal file

Binary file not shown.