User Tools

Site Tools


playing_20an_20mp3_20file_20_28lbb_29

Differences

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

Link to this comparison view

Next revision
Previous revision
playing_20an_20mp3_20file_20_28lbb_29 [2018/03/31 13:19] – external edit 127.0.0.1playing_20an_20mp3_20file_20_28lbb_29 [2024/01/05 00:21] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 //by Richard Russell, January 2016//\\ \\  This is a very simple, no-frills, way of playing an MP3 file:\\ \\  //by Richard Russell, January 2016//\\ \\  This is a very simple, no-frills, way of playing an MP3 file:\\ \\ 
 +<code lb>
       mp3file$ = "C:\users\richard\music\Saint_Saens-Organ.mp3"       mp3file$ = "C:\users\richard\music\Saint_Saens-Organ.mp3"
       ret$ = space$(128) + chr$(0)       ret$ = space$(128) + chr$(0)
Line 8: Line 9:
       cmd$ = "play music"       cmd$ = "play music"
       calldll #winmm, "mciSendStringA", cmd$ as ptr, ret$ as ptr, 128 as long, 0 as long, r as long       calldll #winmm, "mciSendStringA", cmd$ as ptr, ret$ as ptr, 128 as long, 0 as long, r as long
 +</code>
 \\  If you want the MP3 file to be played repeatedly you can change the play command to:\\ \\  \\  If you want the MP3 file to be played repeatedly you can change the play command to:\\ \\ 
 +<code lb>
       cmd$ = "play music repeat"       cmd$ = "play music repeat"
 +</code>
playing_20an_20mp3_20file_20_28lbb_29.1522502373.txt.gz · Last modified: 2024/01/05 00:17 (external edit)