Ignore:
Timestamp:
Jan 21, 2011, 1:05:06 AM (10 years ago)
Author:
sam
Message:

Add preliminary support for sound samples. Implement click.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/monsterz.cpp

    r234 r253  
    3333{
    3434    /* Initialise SDL */
    35     if (SDL_Init(SDL_INIT_VIDEO) < 0)
     35    if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0)
    3636    {
    3737        fprintf(stderr, "Cannot initialise SDL: %s\n", SDL_GetError());
     
    5454    /* Initialise OpenGL */
    5555    Video::Setup(video->w, video->h);
     56    Audio::Setup(2);
    5657
    5758    /* Create a game */
Note: See TracChangeset for help on using the changeset viewer.