Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 15, 2008, 10:54:25 AM (16 years ago)
Author:
rgrieder
Message:
  • removed obsolete Convert.h includes (possibly from old XML loading)
  • replaced tabs in audio library, plus minor code cleanup because removing the tabs screwed layout
  • replaced all "#define name number" with "const Type name = number" if possible
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/audio/AudioBuffer.h

    r1505 r1784  
    3333
    3434#include <string>
    35 
    3635#include <AL/al.h>
    3736
    3837namespace audio
    3938{
    40         class _AudioExport AudioBuffer
    41         {
    42         public:
    43                 AudioBuffer(std::string fileName);
    44                 ~AudioBuffer();
    45         private:
    46                 // Buffers hold sound data.
    47                 ALuint buffer;
    48                 // Identifier
    49                 std::string name;
    50                 // True if AL was able to load data
    51                 ALboolean loaded;
     39    class _AudioExport AudioBuffer
     40    {
     41    public:
     42        AudioBuffer(std::string fileName);
     43        ~AudioBuffer();
    5244
    53                 ALenum format;
    54                 ALsizei size;
    55                 ALvoid* data;
    56                 ALsizei freq;
    57                 ALboolean loop;
    58         };
     45    private:
     46        // Buffers hold sound data.
     47        ALuint buffer;
     48        // Identifier
     49        std::string name;
     50        // True if AL was able to load data
     51        ALboolean loaded;
     52
     53        ALenum format;
     54        ALsizei size;
     55        ALvoid* data;
     56        ALsizei freq;
     57        ALboolean loop;
     58    };
    5959}
    6060
Note: See TracChangeset for help on using the changeset viewer.