IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    [原]SDL_CDStop函数

    caimouse发表于 2016-12-13 09:28:02
    love 0

    SDL_CDStop函数:

    停止播放CD。

    定义:

    #include "SDL.h"
    int SDL_CDStop(SDL_CD *cdrom);

    例子:

    if (gSndPlayer.pCD != NULL)
       {
          if (CD_INDRIVE(SDL_CDStatus(gSndPlayer.pCD)))
          {
             SDL_CDStop(gSndPlayer.pCD);
    
             if (iNumTrack != -1)
             {
                PAL_PlayMUS(-1, FALSE, 0);
    
                if (SDL_CDPlayTracks(gSndPlayer.pCD, iNumTrack - 1, 0, 1, 0) == 0)
                {
                   return TRUE;
                }
             }
          }
       }


    蔡军生

    跟老菜鸟学C++

    http://edu.csdn.net/course/detail/2901





沪ICP备19023445号-2号
友情链接