Changeset 8

Show
Ignore:
Timestamp:
11/13/09 19:06:37 (3 years ago)
Author:
David
Message:

Solves #112 and #113, along with some minor cleanups. See ChangeLog? for further details.

Location:
trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r6 r8  
    44        * Compact build options printout using define symbols. 
    55        * Some TODO cleanup. (Moving to Trac tickets now.) 
     6        * Fixed PAN control in KOBO_sound::g_music(). It was sent 
     7          to the wrong group. 
    68 
    79Kobo Deluxe v0.5.1.1 
     
    2931        * Updated the COPYING (GPL license) file. 
    3032        * Updated all GPL/LGPL license headers. 
    31         * Added missing "one time only" macro logic to some headers. 
     33        * Added missing "once only" macro logic to some headers. 
    3234        * a_globals.[ch] changed from GPL to LGPLv2.1. 
    3335        * Removed unused file ptable.h. 
  • trunk/TODO

    r6 r8  
     1***************************************************************** 
     2*                             NOTE!                             * 
     3*         This TODO is outdated and no longer updated!          * 
     4*       Check out the new issue tracking system over at         * 
     5*            http://beijingcode.org/projects/kobo               * 
     6***************************************************************** 
     7 
    18Pending updates and reports: 
    29        * Apply joystick selection patch 
  • trunk/enemy.cpp

    r5 r8  
    3030/////////////////////////////////////////////////////////////////////////////// 
    3131// Fast integer atan() approximation. Input is 24:8 fixed point. 
    32 // Output is 0..64 for 0..45 deg, accurate accurate down to LSB. 
     32// Output is 0..64 for 0..45 deg, accurate down to LSB. 
    3333//      In:     q = 256 * minv / maxv   (0..256 <==> 0..1) 
    3434//      Out:    atan(q / 256) * 256     (0..64 <==> 0..45 deg) 
    3535/////////////////////////////////////////////////////////////////////////////// 
    36 // atan() approximations for 0..9 deg: 
    37 //      a = 83 * q / 256 - q*q / 2844   (+/- 2.1%) 
    38 //      a = 82 * q / 256 - k*k / 8500 - x*x*x / 1600000 (+/- 0.6%) 
     36// atan() approximations for 0..90 deg: 
     37//      a = 83 * q / 256 - q*q / 2844                           (+/- 2.1%) 
     38//      a = 82 * q / 256 - q*q / 8500 - q*q*q / 1600000         (+/- 0.6%) 
     39// 
     40// FIXME: Better version? 
     41//      a = 84 * q / 256 - 95 * q*q / 524288 - 8 * q*q*q / 16777216 
    3942/////////////////////////////////////////////////////////////////////////////// 
    4043static inline int fastatan(int q) 
  • trunk/kobo.cpp

    r6 r8  
    21892189#endif 
    21902190                        "\n" 
    2191 #if 0 
    2192                         "Build options:\n" 
    2193 #ifdef HAVE_DEBUG 
    2194                         "    DEBUG\n" 
    2195 #endif 
    2196 #ifdef HAVE_OPENGL 
    2197                         "    OpenGL\n" 
    2198 #endif 
    2199 #ifdef PROFILE_AUDIO 
    2200                         "    Audio engine profiling\n" 
    2201 #endif 
    2202 #ifdef HAVE_OSS 
    2203                         "    OSS audio support\n" 
    2204 #endif 
    2205 #ifdef HAVE_ALSA 
    2206                         "    ALSA audio support\n" 
    2207 #endif 
    2208 #ifdef USE_MIDI 
    2209                         "    MIDI input support\n" 
    2210 #endif 
    2211 #ifdef ENABLE_TOUCHSCREEN 
    2212                         "    Touchscreen support\n" 
    2213 #endif 
    2214 #endif 
    22152191                        "Copyright (c) 1995, 1996 Akira Higuchi\n" 
    22162192                        "Copyright (C) 1997 Masanao Izumo\n" 
  • trunk/sound.cpp

    r5 r8  
    328328{ 
    329329        audio_channel_control(SOUND_GROUP_BGMUSIC, AVT_FUTURE, ACC_PATCH, wid); 
    330         audio_channel_control(SOUND_GROUP_UI, AVT_FUTURE, ACC_PAN, 0); 
     330        audio_channel_control(SOUND_GROUP_BGMUSIC, AVT_FUTURE, ACC_PAN, 0); 
    331331        audio_channel_play(SOUND_GROUP_BGMUSIC, 0, 60<<16, 65536); 
    332332}