Modifications

Sauter à la navigation Sauter à la recherche
Ligne 139 : Ligne 139 :  
[[AdaFruit Wave Shield Exemples|Voyez ici pour plus d'information.]]
 
[[AdaFruit Wave Shield Exemples|Voyez ici pour plus d'information.]]
   −
== Saving & restoring the play position ==
+
== Sauver et restaurer une position ==
   −
If, say, you want to know where along in the wave file you are, that information is also available in '''wave.getSize()''' (the number of bytes in the entire wave) and wave.remainingBytesInChunk (how many bytes are left to play)
+
Disons que si vous voulez savoir à quelle position vous vous trouvez dans le fichier musical, cette information est disponible par l'intermédiaire des fonctions  '''wave.getSize()''' (le nombre d'octets du fichier wave en entier) et '''wave.remainingBytesInChunk''' (le nombre d'octet qu'il reste à jouer)
   −
You can set the current place to play from using '''wave.seek()''', the Arduino will immediately start to fastforward to that location. For example, '''wave.seek(0)''' will take you to the beginning, '''wave.seek(wave.getSize()/2)''' will take you to the middle of the file.
+
Vous pouvez vous déplacer dans le fichier joué en utilisant '''wave.seek()''', Arduino démarrera immédiatement une opération d'avance rapide (un saut) jusqu'à cette position.  
 +
 
 +
Par exemple, '''wave.seek(0)''' recommence la lecture en début de fichier tandis que '''wave.seek(wave.getSize()/2)''' déplace la lecture au milieu du fichier.
    
== Volume adjust ==
 
== Volume adjust ==
29 917

modifications

Menu de navigation