source: trunk/nv/fmod/fmod_audio.hh @ 329

Last change on this file since 329 was 329, checked in by epyon, 11 years ago
  • audio now based on handles
File size: 932 bytes
RevLine 
[319]1// Copyright (C) 2012-2014 ChaosForge Ltd
[194]2// http://chaosforge.org/
3//
4// This file is part of NV Libraries.
5// For conditions of distribution and use, see copyright notice in nv.hh
6/**
7 * @file fmod_audio.hh
8 * @author Kornel Kisielewicz epyon@chaosforge.org
9 * @brief FMOD Audio interface
10 */
11
12#ifndef NV_FMOD_AUDIO_HH
13#define NV_FMOD_AUDIO_HH
14
[319]15#include <nv/core/common.hh>
[194]16#include <nv/interface/audio.hh>
17
18namespace nv
19{
20
21        namespace fmod
22        {
23                class audio;
24
[329]25                struct sound_info
[194]26                {
[329]27                        void* fmod_sound;
[194]28                };
29
30                class audio : public nv::audio
31                {
32                public:
33                        audio();
[329]34                        virtual channel play_sound( sound a_sound );
35                        virtual sound load_sound( const std::string& a_path );
36                        virtual void release( sound a_sound );
[194]37                        virtual void update();
38                        virtual ~audio();
39                private:
[329]40                        entity_store< sound_info, sound >     m_sounds;
[194]41                        void* m_system;
42                };
43        }
44}
45
46#endif // NV_FMOD_AUDIO_HH
Note: See TracBrowser for help on using the repository browser.