Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 98094 | Differences between
and this patch

Collapse All | Expand All

(-)src/sound.cpp.origin (+7 lines)
Lines 185-190 Link Here
185
			alDeleteSources(1, &sources[i]);	
185
			alDeleteSources(1, &sources[i]);	
186
		}
186
		}
187
		
187
		
188
		// Destroy the sound context and device (Gentoo)
189
		mSoundContext = alcGetCurrentContext();
190
		mSoundDevice = alcGetContextsDevice( mSoundContext );
191
		alcDestroyContext( mSoundContext );
192
		if ( mSoundDevice)
193
			alcCloseDevice( mSoundDevice );
194
188
		alutExit();
195
		alutExit();
189
		
196
		
190
		delete [] buffers;
197
		delete [] buffers;
(-)include/sound.h.origin (+11 lines)
Lines 97-102 Link Here
97
	float master_volume;
97
	float master_volume;
98
	
98
	
99
public:
99
public:
100
	// Gentoo
101
	ALCdevice* mSoundDevice;
102
	ALCcontext* mSoundContext;
103
	
100
	void Load();
104
	void Load();
101
	void LoadAllSoundFiles();
105
	void LoadAllSoundFiles();
102
	void LoadSoundFile(string filename);
106
	void LoadSoundFile(string filename);
Lines 156-161 Link Here
156
        void UnloadWave(ALvoid* data);*/
160
        void UnloadWave(ALvoid* data);*/
157
161
158
        int tochannel(int handle);
162
        int tochannel(int handle);
163
164
	// Gentoo
165
	float master_volume;
159
        
166
        
160
public:
167
public:
161
        void Load();
168
        void Load();
Lines 174-179 Link Here
174
        void SetPitch(int sid, float pitch);
181
        void SetPitch(int sid, float pitch);
175
        void SetGain(int sid, float gain);
182
        void SetGain(int sid, float gain);
176
        void StopSource(int sid);
183
        void StopSource(int sid);
184
185
	// Gentoo
186
        void SetMasterVolume(float newvol) {master_volume = newvol; if (master_volume < 0) master_volume = 0; if (master_volume > 1) master_volume = 1;}
187
	float GetMasterVolume() {return master_volume;}
177
        
188
        
178
        //void SetPos(int sid, VERTEX pos);
189
        //void SetPos(int sid, VERTEX pos);
179
        //void SetVel(int sid, VERTEX vel);
190
        //void SetVel(int sid, VERTEX vel);

Return to bug 98094