From 250505c99b8b581e6823d0f6af863fecb07c5743 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 23 Sep 2008 15:38:32 +0000 Subject: [PATCH] more small style changes git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27708 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/game/GameSoundBuffer.h | 52 +++++++-------------------------- 1 file changed, 11 insertions(+), 41 deletions(-) diff --git a/src/kits/game/GameSoundBuffer.h b/src/kits/game/GameSoundBuffer.h index 3d99120bc9..3790c0b9a6 100644 --- a/src/kits/game/GameSoundBuffer.h +++ b/src/kits/game/GameSoundBuffer.h @@ -1,46 +1,18 @@ -//------------------------------------------------------------------------------ -// Copyright (c) 2001-2002, OpenBeOS -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the "Software"), -// to deal in the Software without restriction, including without limitation -// the rights to use, copy, modify, merge, publish, distribute, sublicense, -// and/or sell copies of the Software, and to permit persons to whom the -// Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -// DEALINGS IN THE SOFTWARE. -// -// File Name: GameSoundBuffer.h -// Author: Christopher ML Zumwalt May (zummy@users.sf.net) -// Description: Interface to a single sound, managed by the GameSoundDevice. -//------------------------------------------------------------------------------ +/* + * Copyright 2001-2002, Haiku. + * Distributed under the terms of the MIT License. + * + * Author: Christopher ML Zumwalt May (zummy@users.sf.net) + */ #ifndef _GAMESOUNDBUFFER_H #define _GAMESOUNDBUFFER_H -// Standard Includes ----------------------------------------------------------- -// System Includes ------------------------------------------------------------- #include #include #include -// Project Includes ------------------------------------------------------------ - -// Local Includes -------------------------------------------------------------- - -// Local Defines --------------------------------------------------------------- - -// Globals --------------------------------------------------------------------- const int32 kPausedAttribute = B_GS_FIRST_PRIVATE_ATTRIBUTE; class GameProducer; @@ -54,9 +26,8 @@ struct Connection media_node timeSource; }; -// GameSoundBuffer ------------------------------------------------------------- -class GameSoundBuffer -{ + +class GameSoundBuffer { public: GameSoundBuffer(const gs_audio_format* format); @@ -108,8 +79,7 @@ private: }; -class SimpleSoundBuffer : public GameSoundBuffer -{ +class SimpleSoundBuffer : public GameSoundBuffer { public: SimpleSoundBuffer(const gs_audio_format* format, const void * data, @@ -129,8 +99,8 @@ private: size_t fPosition; }; -class StreamingSoundBuffer : public GameSoundBuffer -{ + +class StreamingSoundBuffer : public GameSoundBuffer { public: StreamingSoundBuffer(const gs_audio_format * format, const void * streamHook);