Ignore:
Timestamp:
06/20/15 00:05:17 (10 years ago)
Author:
epyon
Message:
  • code compiles cleanly on maximum warning level
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sdl/sdl_audio.cc

    r399 r406  
    3636        if ( info )
    3737        {
    38                 int channel = Mix_PlayChannel(-1, (Mix_Chunk*)( info->sdl_sound), 0);
     38                int channel = Mix_PlayChannel(-1, static_cast<Mix_Chunk*>( info->sdl_sound ), 0);
    3939                if ( channel == -1 )
    4040                {
     
    4343                else
    4444                {
    45                         Mix_Volume( channel, int( volume * 128.0f ) );
     45                        Mix_Volume( channel, static_cast<int>( volume * 128.0f ) );
    4646                        if ( pan != 0.0f)
    4747                        {
    48                                 uint8 right = (uint8)( (pan + 1.0f) * 127.0f );
     48                                uint8 right = static_cast<uint8>( (pan + 1.0f) * 127.0f );
    4949                                Mix_SetPanning( channel, 254-right, right );
    5050                        }
     
    6363        if ( info )
    6464        {
    65                 int channel = Mix_PlayChannel(-1, (Mix_Chunk*)( info->sdl_sound), 0);
     65                int channel = Mix_PlayChannel(-1, static_cast<Mix_Chunk*>( info->sdl_sound ), 0);
    6666                if ( channel == -1 )
    6767                {
     
    123123        if ( info )
    124124        {
    125                 Mix_FreeChunk( (Mix_Chunk*)info->sdl_sound );
     125                Mix_FreeChunk( static_cast<Mix_Chunk*>( info->sdl_sound ) );
    126126                m_sounds.destroy( a_sound );
    127127        }
Note: See TracChangeset for help on using the changeset viewer.