playing_20part_20of_20a_20wav_20file
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
playing_20part_20of_20a_20wav_20file [2018/03/31 13:19] – external edit 127.0.0.1 | playing_20part_20of_20a_20wav_20file [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Playing part of a WAV file===== | =====Playing part of a WAV file===== | ||
- | //by Richard Russell, April 2013//\\ \\ If you want to play just a section of a WAV file, you can do so using code similar to the following:\\ | + | //by Richard Russell, April 2013//\\ \\ If you want to play just a section of a WAV file, you can do so using code similar to the following: |
+ | |||
+ | <code bb4w> | ||
SYS " | SYS " | ||
SYS " | SYS " | ||
- | Where **wavfile$** is the path and file specification.\\ \\ Here the start (**from**) and finish (**to**) positions are specified as constants (in milliseconds) but you can easily construct a suitable command string using variables:\\ | + | </ |
+ | |||
+ | Where **wavfile$** is the path and file specification.\\ \\ Here the start (**from**) and finish (**to**) positions are specified as constants (in milliseconds) but you can easily construct a suitable command string using variables: | ||
+ | |||
+ | <code bb4w> | ||
SYS " | SYS " | ||
SYS " | SYS " | ||
- | Ideally once the file has finished playing you should close the device as follows:\\ | + | </ |
+ | |||
+ | Ideally once the file has finished playing you should close the device as follows: | ||
+ | |||
+ | <code bb4w> | ||
SYS " | SYS " | ||
+ | </ |
playing_20part_20of_20a_20wav_20file.1522502374.txt.gz · Last modified: 2024/01/05 00:17 (external edit)