ResumeChannel.htm 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>ResumeChannel channel</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. channel - a music or sound channel previously allocated via LoadSound, PlayMusic, etc.
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. ResumeChannel is used to continue the playing of a sound sample or music track on the given channel after you have temporarily halted playback on that channel (via PauseChannel).
  21. </td>
  22. </tr>
  23. </table>
  24. <h1><a href=../2d_examples/ResumeChannel.bb>Example</a></h1>
  25. <table>
  26. <tr>
  27. <td>
  28. Graphics 640, 480, 0, 2 <br />
  29. <br />
  30. musicchannel = PlayMusic ("oohyeahbaby.mp3") ; Replace with a music file on your hard drive! <br />
  31. <br />
  32. Repeat <br />
  33. <br />
  34. Print "Press a key to pause the music..." <br />
  35. WaitKey <br />
  36. <br />
  37. PauseChannel musicchannel <br />
  38. <br />
  39. Print "Press a key to continue the music..." <br />
  40. WaitKey <br />
  41. <br />
  42. ResumeChannel musicchannel <br />
  43. <br />
  44. Until KeyHit (1) <br />
  45. <br />
  46. End <br />
  47. </td>
  48. </tr>
  49. </table>
  50. <br>
  51. <a target=_top href=../index.htm>Index</a><br>
  52. <br>
  53. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=ResumeChannel&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  54. </html>