SDL_CDStop函数

来源:互联网 发布:阿里云华东 编辑:程序博客网 时间:2024/06/15 21:13

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



0 0
原创粉丝点击