comparison AudioPlayer.h @ 2455:51d4f38aca6c

audio through OpenAL (begining)
author Ritor1
date Fri, 25 Jul 2014 17:49:20 +0600
parents 7948957d9178
children 0683c0a38282
comparison
equal deleted inserted replaced
2454:16f0278279a5 2455:51d4f38aca6c
1 #pragma once 1 #pragma once
2 #include "OSAPI.h" 2 #include "OSAPI.h"
3 3 #include "MediaPlayer.h"
4 4
5 5
6 6
7 7
8 8
39 39
40 40
41 41
42 42
43 /* 26 */ 43 /* 26 */
44 #pragma pack(push, 1) 44 /*#pragma pack(push, 1)
45 struct SoundHeader 45 struct SoundHeader
46 { 46 {
47 char pSoundName[40]; 47 char pSoundName[40];
48 unsigned int uFileOffset; 48 unsigned int uFileOffset;
49 unsigned int uCompressedSize; 49 unsigned int uCompressedSize;
50 unsigned int uDecompressedSize; 50 unsigned int uDecompressedSize;
51 }; 51 };
52 #pragma pack(pop) 52 #pragma pack(pop)*/
53 53
54 /* 27 */ 54 /* 27 */
55 #pragma pack(push, 1) 55 #pragma pack(push, 1)
56 struct MixerChannel 56 struct MixerChannel
57 { 57 {
167 void SetMasterVolume(float fVolume); 167 void SetMasterVolume(float fVolume);
168 void _4AA258(int a2); 168 void _4AA258(int a2);
169 void PlaySound(SoundID eSoundID, signed int a3, unsigned int uNumRepeats, signed int a5, signed int a6, int a7, float uVolume, int sPlaybackRate); 169 void PlaySound(SoundID eSoundID, signed int a3, unsigned int uNumRepeats, signed int a5, signed int a6, int a7, float uVolume, int sPlaybackRate);
170 void UpdateSounds(); 170 void UpdateSounds();
171 void StopChannels(int uStartChannel, int uEndChannel); 171 void StopChannels(int uStartChannel, int uEndChannel);
172 void LoadAudioSnd(); 172 void LoadAudioSnd();//
173 void Initialize(); 173 void Initialize();//
174 void CheckA3DSupport(bool query); 174 void CheckA3DSupport(bool query);
175 void Release(); 175 void Release();
176 void FreeChannel(MixerChannel *pChannel); 176 void FreeChannel(MixerChannel *pChannel);
177 void _4ABF23(AudioPlayer_3DSample *a2); 177 void _4ABF23(AudioPlayer_3DSample *a2);
178 void SetEAXPreferences(); 178 void SetEAXPreferences();