User Tools

Site Tools


playing_20an_20mp3_20file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

playing_20an_20mp3_20file [2018/03/31 13:19]
127.0.0.1 external edit
playing_20an_20mp3_20file [2018/04/15 12:36] (current)
richardrussell Added syntax highlighting
Line 1: Line 1:
 =====Playing an MP3 file===== =====Playing an MP3 file=====
  
-//by Richard Russell, May 2015//\\ \\  This is a very simple, no-frills, way of playing an MP3 music file:\\ +//by Richard Russell, May 2015//\\ \\  This is a very simple, no-frills, way of playing an MP3 music file: 
 + 
 +<code bb4w> ​
         mp3file% = OPENIN("​*.mp3"​)         mp3file% = OPENIN("​*.mp3"​)
         IF mp3file% = 0 THEN QUIT         IF mp3file% = 0 THEN QUIT
Line 17: Line 19:
         IF S% ERROR 100, "​mciSendString failed: " + STR$(S%)         IF S% ERROR 100, "​mciSendString failed: " + STR$(S%)
         ENDPROC         ENDPROC
-\\  ​If you want the MP3 file to be played repeatedly you can change the **play** command to:\\ \\ +</​code>​ 
 + 
 +If you want the MP3 file to be played repeatedly you can change the **play** command to: 
 + 
 +<code bb4w>
         PROCmci("​play music repeat"​)         PROCmci("​play music repeat"​)
 +</​code>​
 +
playing_20an_20mp3_20file.txt · Last modified: 2018/04/15 12:36 by richardrussell