Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/openal-0.0.8/src/alc/alc_speaker.h @ 17

Last change on this file since 17 was 17, checked in by landauf, 17 years ago

added openal

File size: 1.2 KB
Line 
1/* -*- mode: C; tab-width:8; c-basic-offset:8 -*-
2 * vi:set ts=8:
3 *
4 * alc_speaker.h
5 *
6 * Prototypes, defines etc for speaker management.
7 */
8#ifndef ALC_SPEAKER_H_
9#define ALC_SPEAKER_H_
10
11#include "al_siteconfig.h"
12
13#include <AL/al.h>
14
15#include "alc/alc_context.h"
16
17typedef enum {
18        ALS_LEFT,
19        ALS_RIGHT,
20        ALS_LEFTS,
21        ALS_RIGHTS
22} _alcSpeakerEnum;
23
24/*
25 * Initializes the speaker setup for the context named by cid.
26 */
27void _alcSpeakerInit( ALuint cid );
28
29/*
30 *  Updates the speaker setup for the context named by cid for changes in
31 *  listener position and orientation.
32 */
33void _alcSpeakerMove( ALuint cid );
34
35/*
36 * Returns the 3-tuple position (x/y/z) of the speaker enumerated by
37 * speaker_num for the context named by cid, or NULL if cid does not name a
38 * context.
39 */
40ALfloat *_alcGetSpeakerPosition( ALuint cid, ALuint speaker_num );
41
42/*
43 * Returns the number of speakers associated with the context named by cid.
44 */
45ALuint _alcGetNumSpeakers( ALuint cid );
46
47/* default context macros */
48#define _alcDCSpeakerMove()     _alcSpeakerMove(_alcCCId)
49#define _alcDCSpeakerInit()     _alcSpeakerInit(_alcCCId)
50#define _alcDCGetNumSpeakers()  _alcGetNumSpeakers(_alcCCId)
51
52#endif /* _ALC_SPEAKERS_H_ */
Note: See TracBrowser for help on using the repository browser.