Panda3D
Loading...
Searching...
No Matches
globalMilesManager.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file globalMilesManager.I
10 * @author drose
11 * @date 2007-07-30
12 */
13
14/**
15 * Returns true if the Miles Sound System is open (and active), false if it is
16 * not.
17 */
18INLINE bool GlobalMilesManager::
19is_open() const {
20 return _is_open;
21}
22
23/**
24 * Returns the number of sample handles that have been allocated.
25 */
26INLINE int GlobalMilesManager::
27get_num_samples() const {
28 LightMutexHolder holder(_samples_lock);
29 return _samples.size();
30}
31
32/**
33 * Returns the number of sequence handles that have been allocated.
34 */
35INLINE int GlobalMilesManager::
36get_num_sequences() const {
37 LightMutexHolder holder(_sequences_lock);
38 return _sequences.size();
39}
Similar to MutexHolder, but for a light mutex.