Refactorisé le projet Cigales et corrigé un bug de timer dans init.lua

This commit is contained in:
Christian Zufferey
2019-07-21 16:14:13 +02:00
parent 486c897771
commit 8fbff636bc
21 changed files with 25 additions and 15 deletions
+4 -2
View File
@@ -1,6 +1,6 @@
-- Scripts pour jouer un fichier son sur un HP
print("\n play_file.lua zf190721.1238 \n")
print("\n play_file.lua zf190721.1600 \n")
-- ****************************************************************************
@@ -17,6 +17,8 @@ function cb_drained(d)
file.seek("set", 0)
-- uncomment the following line for continuous playback
--d:play(pcm.RATE_8K)
d:play(pcm.RATE_16K)
end
function cb_stopped(d)
@@ -28,7 +30,7 @@ function cb_paused(d)
print("playback paused")
end
file.open("cigale_10s_16k.wav", "r")
file.open("cigale_1mn_16k.wav", "r")
drv = pcm.new(pcm.SD, 5)