LCOV - code coverage report
Current view: top level - Core - OOALSoundMixer.h (source / functions) Hit Total Coverage
Test: coverxygen.info Lines: 0 11 0.0 %
Date: 2025-05-28 07:50:54 Functions: 0 0 -

          Line data    Source code
       1           0 : /*
       2             : 
       3             : OOALSoundMixer.h
       4             : 
       5             : Class responsible for managing and mixing sound channels. This class is an
       6             : implementation detail. Do not use it directly; use an OOSoundSource to play an
       7             : OOSound.
       8             : 
       9             : OOALSound - OpenAL sound implementation for Oolite.
      10             : Copyright (C) 2006-2013 Jens Ayton
      11             : 
      12             : Permission is hereby granted, free of charge, to any person obtaining a copy
      13             : of this software and associated documentation files (the "Software"), to deal
      14             : in the Software without restriction, including without limitation the rights
      15             : to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
      16             : copies of the Software, and to permit persons to whom the Software is
      17             : furnished to do so, subject to the following conditions:
      18             : 
      19             : The above copyright notice and this permission notice shall be included in all
      20             : copies or substantial portions of the Software.
      21             : 
      22             : THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
      23             : IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
      24             : FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
      25             : AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
      26             : LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
      27             : OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
      28             : SOFTWARE.
      29             : 
      30             : */
      31             : 
      32             : #import <Foundation/Foundation.h>
      33             : 
      34             : @class OOSoundChannel;
      35             : 
      36             : 
      37           0 : enum
      38             : {
      39             :         kMixerGeneralChannels           = 32
      40             : };
      41             : 
      42             : 
      43           0 : @interface OOSoundMixer: NSObject
      44             : {
      45           0 :         OOSoundChannel                          *_channels[kMixerGeneralChannels];
      46           0 :         OOSoundChannel                          *_freeList;
      47             :         
      48           0 :         uint32_t                                        _maxChannels;
      49           0 :         uint32_t                                        _playMask;
      50             :         
      51             : }
      52             : 
      53             : // Singleton accessor
      54           0 : + (id) sharedMixer;
      55             : 
      56           0 : - (void) update;
      57             : 
      58           0 : - (OOSoundChannel *) popChannel;
      59           0 : - (void) pushChannel:(OOSoundChannel *)channel;
      60             : 
      61             : @end

Generated by: LCOV version 1.14