xref: /haiku/src/kits/game/GameSound.cpp (revision 25a7b01d15612846f332751841da3579db313082)
1ea4f253fSJérôme Duval /*
2*2066acfbSAlexander von Gluck IV  * Copyright 2002-2012 Haiku, Inc. All Rights Reserved.
3*2066acfbSAlexander von Gluck IV  * Distributed under the terms of the MIT License.
4*2066acfbSAlexander von Gluck IV  *
5ea4f253fSJérôme Duval  * Authors:
6ea4f253fSJérôme Duval  *		Christopher ML Zumwalt May (zummy@users.sf.net)
7ea4f253fSJérôme Duval  *
8ea4f253fSJérôme Duval  */
90b4a36abSbeveloper 
10*2066acfbSAlexander von Gluck IV 
11*2066acfbSAlexander von Gluck IV #include <GameSound.h>
12*2066acfbSAlexander von Gluck IV 
134703fb5dSbeveloper #include <stdio.h>
14758b1d0eSIngo Weinhold #include <string.h>
154703fb5dSbeveloper 
160c93c0a8SJérôme Duval #include "GameSoundBuffer.h"
170c93c0a8SJérôme Duval #include "GameSoundDevice.h"
180c93c0a8SJérôme Duval 
190c93c0a8SJérôme Duval 
20758b1d0eSIngo Weinhold using std::nothrow;
21758b1d0eSIngo Weinhold 
22*2066acfbSAlexander von Gluck IV 
234703fb5dSbeveloper // Local Defines ---------------------------------------------------------------
244703fb5dSbeveloper 
254703fb5dSbeveloper // BGameSound class ------------------------------------------------------------
BGameSound(BGameSoundDevice * device)260b4a36abSbeveloper BGameSound::BGameSound(BGameSoundDevice *device)
27*2066acfbSAlexander von Gluck IV 	:
28*2066acfbSAlexander von Gluck IV 	fSound(-1)
290b4a36abSbeveloper {
30914fb503SStephan Aßmus 	// TODO: device is ignored!
31914fb503SStephan Aßmus 	// NOTE: BeBook documents that BGameSoundDevice must currently always
32914fb503SStephan Aßmus 	// be NULL...
334703fb5dSbeveloper 	fDevice = GetDefaultDevice();
344703fb5dSbeveloper 	fInitError = fDevice->InitCheck();
354703fb5dSbeveloper }
364703fb5dSbeveloper 
374703fb5dSbeveloper 
BGameSound(const BGameSound & other)384703fb5dSbeveloper BGameSound::BGameSound(const BGameSound &other)
39*2066acfbSAlexander von Gluck IV 	:
40*2066acfbSAlexander von Gluck IV 	fSound(-1)
414703fb5dSbeveloper {
424703fb5dSbeveloper 	memcpy(&fFormat, &other.fFormat, sizeof(gs_audio_format));
43914fb503SStephan Aßmus 	// TODO: device from other is ignored!
444703fb5dSbeveloper 	fDevice = GetDefaultDevice();
454703fb5dSbeveloper 
464703fb5dSbeveloper 	fInitError = fDevice->InitCheck();
470b4a36abSbeveloper }
480b4a36abSbeveloper 
490b4a36abSbeveloper 
~BGameSound()500b4a36abSbeveloper BGameSound::~BGameSound()
510b4a36abSbeveloper {
524703fb5dSbeveloper 	if (fSound >= 0)
534703fb5dSbeveloper 		fDevice->ReleaseBuffer(fSound);
544703fb5dSbeveloper 
554703fb5dSbeveloper 	ReleaseDevice();
560b4a36abSbeveloper }
570b4a36abSbeveloper 
580b4a36abSbeveloper 
590b4a36abSbeveloper status_t
InitCheck() const600b4a36abSbeveloper BGameSound::InitCheck() const
610b4a36abSbeveloper {
624703fb5dSbeveloper 	return fInitError;
630b4a36abSbeveloper }
640b4a36abSbeveloper 
650b4a36abSbeveloper 
660b4a36abSbeveloper BGameSoundDevice *
Device() const670b4a36abSbeveloper BGameSound::Device() const
680b4a36abSbeveloper {
69914fb503SStephan Aßmus 	// TODO: Must return NULL if default device is being used!
704703fb5dSbeveloper 	return fDevice;
710b4a36abSbeveloper }
720b4a36abSbeveloper 
730b4a36abSbeveloper 
740b4a36abSbeveloper gs_id
ID() const750b4a36abSbeveloper BGameSound::ID() const
760b4a36abSbeveloper {
77914fb503SStephan Aßmus 	// TODO: Should be 0 if no sound has been selected! But fSound
78914fb503SStephan Aßmus 	// is initialized with -1 in the constructors.
794703fb5dSbeveloper 	return fSound;
800b4a36abSbeveloper }
810b4a36abSbeveloper 
820b4a36abSbeveloper 
830b4a36abSbeveloper const gs_audio_format &
Format() const840b4a36abSbeveloper BGameSound::Format() const
850b4a36abSbeveloper {
864703fb5dSbeveloper 	return fDevice->Format(fSound);
870b4a36abSbeveloper }
880b4a36abSbeveloper 
890b4a36abSbeveloper 
900b4a36abSbeveloper status_t
StartPlaying()910b4a36abSbeveloper BGameSound::StartPlaying()
920b4a36abSbeveloper {
934703fb5dSbeveloper 	fDevice->StartPlaying(fSound);
944703fb5dSbeveloper 	return B_OK;
950b4a36abSbeveloper }
960b4a36abSbeveloper 
970b4a36abSbeveloper 
980b4a36abSbeveloper bool
IsPlaying()990b4a36abSbeveloper BGameSound::IsPlaying()
1000b4a36abSbeveloper {
1014703fb5dSbeveloper 	return fDevice->IsPlaying(fSound);
1020b4a36abSbeveloper }
1030b4a36abSbeveloper 
1040b4a36abSbeveloper 
1050b4a36abSbeveloper status_t
StopPlaying()1060b4a36abSbeveloper BGameSound::StopPlaying()
1070b4a36abSbeveloper {
1084703fb5dSbeveloper 	fDevice->StopPlaying(fSound);
1094703fb5dSbeveloper 	return B_OK;
1100b4a36abSbeveloper }
1110b4a36abSbeveloper 
1120b4a36abSbeveloper 
1130b4a36abSbeveloper status_t
SetGain(float gain,bigtime_t duration)114*2066acfbSAlexander von Gluck IV BGameSound::SetGain(float gain, bigtime_t duration)
1150b4a36abSbeveloper {
1164703fb5dSbeveloper 	gs_attribute attribute;
1174703fb5dSbeveloper 
1184703fb5dSbeveloper 	attribute.attribute = B_GS_GAIN;
1194703fb5dSbeveloper 	attribute.value = gain;
1204703fb5dSbeveloper 	attribute.duration = duration;
1214703fb5dSbeveloper 	attribute.flags = 0;
1224703fb5dSbeveloper 
1234703fb5dSbeveloper 	return fDevice->SetAttributes(fSound, &attribute, 1);
1240b4a36abSbeveloper }
1250b4a36abSbeveloper 
1260b4a36abSbeveloper 
1270b4a36abSbeveloper status_t
SetPan(float pan,bigtime_t duration)128*2066acfbSAlexander von Gluck IV BGameSound::SetPan(float pan, bigtime_t duration)
1290b4a36abSbeveloper {
1304703fb5dSbeveloper 	gs_attribute attribute;
1314703fb5dSbeveloper 
1324703fb5dSbeveloper 	attribute.attribute = B_GS_PAN;
1334703fb5dSbeveloper 	attribute.value = pan;
1344703fb5dSbeveloper 	attribute.duration = duration;
1354703fb5dSbeveloper 	attribute.flags = 0;
1364703fb5dSbeveloper 
1374703fb5dSbeveloper 	return fDevice->SetAttributes(fSound, &attribute, 1);
1380b4a36abSbeveloper }
1390b4a36abSbeveloper 
1400b4a36abSbeveloper 
1410b4a36abSbeveloper float
Gain()1420b4a36abSbeveloper BGameSound::Gain()
1430b4a36abSbeveloper {
1444703fb5dSbeveloper 	gs_attribute attribute;
1454703fb5dSbeveloper 
1464703fb5dSbeveloper 	attribute.attribute = B_GS_GAIN;
1474703fb5dSbeveloper 	attribute.flags = 0;
1484703fb5dSbeveloper 
1494703fb5dSbeveloper 	if (fDevice->GetAttributes(fSound, &attribute, 1) != B_OK)
1504703fb5dSbeveloper 		return 0.0;
1514703fb5dSbeveloper 
1524703fb5dSbeveloper 	return attribute.value;
1530b4a36abSbeveloper }
1540b4a36abSbeveloper 
1550b4a36abSbeveloper 
1560b4a36abSbeveloper float
Pan()1570b4a36abSbeveloper BGameSound::Pan()
1580b4a36abSbeveloper {
1594703fb5dSbeveloper 	gs_attribute attribute;
1604703fb5dSbeveloper 
1614703fb5dSbeveloper 	attribute.attribute = B_GS_PAN;
1624703fb5dSbeveloper 	attribute.flags = 0;
1634703fb5dSbeveloper 
1644703fb5dSbeveloper 	if (fDevice->GetAttributes(fSound, &attribute, 1) != B_OK)
1654703fb5dSbeveloper 		return 0.0;
1664703fb5dSbeveloper 
1674703fb5dSbeveloper 	return attribute.value;
1680b4a36abSbeveloper }
1690b4a36abSbeveloper 
1700b4a36abSbeveloper 
1710b4a36abSbeveloper status_t
SetAttributes(gs_attribute * inAttributes,size_t inAttributeCount)172*2066acfbSAlexander von Gluck IV BGameSound::SetAttributes(gs_attribute *inAttributes, size_t inAttributeCount)
1730b4a36abSbeveloper {
1744703fb5dSbeveloper 	return fDevice->SetAttributes(fSound, inAttributes, inAttributeCount);
1750b4a36abSbeveloper }
1760b4a36abSbeveloper 
1770b4a36abSbeveloper 
1780b4a36abSbeveloper status_t
GetAttributes(gs_attribute * outAttributes,size_t inAttributeCount)179*2066acfbSAlexander von Gluck IV BGameSound::GetAttributes(gs_attribute *outAttributes, size_t inAttributeCount)
1800b4a36abSbeveloper {
1814703fb5dSbeveloper 	return fDevice->GetAttributes(fSound, outAttributes, inAttributeCount);
1820b4a36abSbeveloper }
1830b4a36abSbeveloper 
1840b4a36abSbeveloper 
1850b4a36abSbeveloper status_t
Perform(int32 selector,void * data)1860b4a36abSbeveloper BGameSound::Perform(int32 selector,
1870b4a36abSbeveloper 					void *data)
1880b4a36abSbeveloper {
1890b4a36abSbeveloper 	return B_ERROR;
1900b4a36abSbeveloper }
1910b4a36abSbeveloper 
19289e936f7Sbeveloper 
1930b4a36abSbeveloper void *
operator new(size_t size)1940b4a36abSbeveloper BGameSound::operator new(size_t size)
1950b4a36abSbeveloper {
19689e936f7Sbeveloper 	return ::operator new(size);
19789e936f7Sbeveloper }
19889e936f7Sbeveloper 
19989e936f7Sbeveloper 
20089e936f7Sbeveloper void *
operator new(size_t size,const std::nothrow_t & nt)201758b1d0eSIngo Weinhold BGameSound::operator new(size_t size, const std::nothrow_t &nt) throw()
20289e936f7Sbeveloper {
20389e936f7Sbeveloper 	return ::operator new(size, nt);
2040b4a36abSbeveloper }
2050b4a36abSbeveloper 
2060b4a36abSbeveloper 
2070b4a36abSbeveloper void
operator delete(void * ptr)2080b4a36abSbeveloper BGameSound::operator delete(void *ptr)
2090b4a36abSbeveloper {
21089e936f7Sbeveloper 	::operator delete(ptr);
2110b4a36abSbeveloper }
21289e936f7Sbeveloper 
21389e936f7Sbeveloper 
21489e936f7Sbeveloper #if !__MWERKS__
21589e936f7Sbeveloper //	there's a bug in MWCC under R4.1 and earlier
21689e936f7Sbeveloper void
operator delete(void * ptr,const std::nothrow_t & nt)217758b1d0eSIngo Weinhold BGameSound::operator delete(void *ptr, const std::nothrow_t &nt) throw()
21889e936f7Sbeveloper {
21989e936f7Sbeveloper 	::operator delete(ptr, nt);
22089e936f7Sbeveloper }
22189e936f7Sbeveloper #endif
22289e936f7Sbeveloper 
2230b4a36abSbeveloper 
2240b4a36abSbeveloper status_t
SetMemoryPoolSize(size_t in_poolSize)2250b4a36abSbeveloper BGameSound::SetMemoryPoolSize(size_t in_poolSize)
2260b4a36abSbeveloper {
2270b4a36abSbeveloper 	return B_ERROR;
2280b4a36abSbeveloper }
2290b4a36abSbeveloper 
2300b4a36abSbeveloper 
2310b4a36abSbeveloper status_t
LockMemoryPool(bool in_lockInCore)2320b4a36abSbeveloper BGameSound::LockMemoryPool(bool in_lockInCore)
2330b4a36abSbeveloper {
2340b4a36abSbeveloper 	return B_ERROR;
2350b4a36abSbeveloper }
2360b4a36abSbeveloper 
2370b4a36abSbeveloper 
2380b4a36abSbeveloper int32
SetMaxSoundCount(int32 in_maxCount)2390b4a36abSbeveloper BGameSound::SetMaxSoundCount(int32 in_maxCount)
2400b4a36abSbeveloper {
2414703fb5dSbeveloper 	return in_maxCount;
2420b4a36abSbeveloper }
2430b4a36abSbeveloper 
2440b4a36abSbeveloper 
2450b4a36abSbeveloper status_t
SetInitError(status_t in_initError)2460b4a36abSbeveloper BGameSound::SetInitError(status_t in_initError)
2470b4a36abSbeveloper {
2484703fb5dSbeveloper 	fInitError = in_initError;
2494703fb5dSbeveloper 	return B_OK;
2500b4a36abSbeveloper }
2510b4a36abSbeveloper 
2520b4a36abSbeveloper 
2530b4a36abSbeveloper status_t
Init(gs_id handle)2540b4a36abSbeveloper BGameSound::Init(gs_id handle)
2550b4a36abSbeveloper {
2560e79ce1eSStefano Ceccherini 	if (fSound < 0)
2570e79ce1eSStefano Ceccherini 		fSound = handle;
2584703fb5dSbeveloper 
2594703fb5dSbeveloper 	return B_OK;
2600b4a36abSbeveloper }
2610b4a36abSbeveloper 
262*2066acfbSAlexander von Gluck IV 
263*2066acfbSAlexander von Gluck IV #if 0
2640b4a36abSbeveloper BGameSound &
2650b4a36abSbeveloper BGameSound::operator=(const BGameSound &other)
2660b4a36abSbeveloper {
2674703fb5dSbeveloper 	if (fSound)
2684703fb5dSbeveloper 		fDevice->ReleaseBuffer(fSound);
2690b4a36abSbeveloper 
2704703fb5dSbeveloper 	fSound = other.fSound;
2714703fb5dSbeveloper 	fInitError = other.fInitError;
2724703fb5dSbeveloper 
273914fb503SStephan Aßmus 	// TODO: This would need to acquire the sound another time!
274914fb503SStephan Aßmus 
2754703fb5dSbeveloper 	return this;
2764703fb5dSbeveloper }
277*2066acfbSAlexander von Gluck IV #endif
278*2066acfbSAlexander von Gluck IV 
2790b4a36abSbeveloper 
2800b4a36abSbeveloper /* unimplemented for protection of the user:
2810b4a36abSbeveloper  *
2820b4a36abSbeveloper  * BGameSound::BGameSound()
2830b4a36abSbeveloper  */
2840b4a36abSbeveloper 
2850b4a36abSbeveloper 
2860b4a36abSbeveloper status_t
_Reserved_BGameSound_0(int32 arg,...)2870b4a36abSbeveloper BGameSound::_Reserved_BGameSound_0(int32 arg, ...)
2880b4a36abSbeveloper {
2890b4a36abSbeveloper 	return B_ERROR;
2900b4a36abSbeveloper }
2910b4a36abSbeveloper 
2920b4a36abSbeveloper 
2930b4a36abSbeveloper status_t
_Reserved_BGameSound_1(int32 arg,...)2940b4a36abSbeveloper BGameSound::_Reserved_BGameSound_1(int32 arg, ...)
2950b4a36abSbeveloper {
2960b4a36abSbeveloper 	return B_ERROR;
2970b4a36abSbeveloper }
2980b4a36abSbeveloper 
2990b4a36abSbeveloper 
3000b4a36abSbeveloper status_t
_Reserved_BGameSound_2(int32 arg,...)3010b4a36abSbeveloper BGameSound::_Reserved_BGameSound_2(int32 arg, ...)
3020b4a36abSbeveloper {
3030b4a36abSbeveloper 	return B_ERROR;
3040b4a36abSbeveloper }
3050b4a36abSbeveloper 
3060b4a36abSbeveloper 
3070b4a36abSbeveloper status_t
_Reserved_BGameSound_3(int32 arg,...)3080b4a36abSbeveloper BGameSound::_Reserved_BGameSound_3(int32 arg, ...)
3090b4a36abSbeveloper {
3100b4a36abSbeveloper 	return B_ERROR;
3110b4a36abSbeveloper }
3120b4a36abSbeveloper 
3130b4a36abSbeveloper 
3140b4a36abSbeveloper status_t
_Reserved_BGameSound_4(int32 arg,...)3150b4a36abSbeveloper BGameSound::_Reserved_BGameSound_4(int32 arg, ...)
3160b4a36abSbeveloper {
3170b4a36abSbeveloper 	return B_ERROR;
3180b4a36abSbeveloper }
3190b4a36abSbeveloper 
3200b4a36abSbeveloper 
3210b4a36abSbeveloper status_t
_Reserved_BGameSound_5(int32 arg,...)3220b4a36abSbeveloper BGameSound::_Reserved_BGameSound_5(int32 arg, ...)
3230b4a36abSbeveloper {
3240b4a36abSbeveloper 	return B_ERROR;
3250b4a36abSbeveloper }
3260b4a36abSbeveloper 
3270b4a36abSbeveloper 
3280b4a36abSbeveloper status_t
_Reserved_BGameSound_6(int32 arg,...)3290b4a36abSbeveloper BGameSound::_Reserved_BGameSound_6(int32 arg, ...)
3300b4a36abSbeveloper {
3310b4a36abSbeveloper 	return B_ERROR;
3320b4a36abSbeveloper }
3330b4a36abSbeveloper 
3340b4a36abSbeveloper 
3350b4a36abSbeveloper status_t
_Reserved_BGameSound_7(int32 arg,...)3360b4a36abSbeveloper BGameSound::_Reserved_BGameSound_7(int32 arg, ...)
3370b4a36abSbeveloper {
3380b4a36abSbeveloper 	return B_ERROR;
3390b4a36abSbeveloper }
3400b4a36abSbeveloper 
3410b4a36abSbeveloper 
3420b4a36abSbeveloper status_t
_Reserved_BGameSound_8(int32 arg,...)3430b4a36abSbeveloper BGameSound::_Reserved_BGameSound_8(int32 arg, ...)
3440b4a36abSbeveloper {
3450b4a36abSbeveloper 	return B_ERROR;
3460b4a36abSbeveloper }
3470b4a36abSbeveloper 
3480b4a36abSbeveloper 
3490b4a36abSbeveloper status_t
_Reserved_BGameSound_9(int32 arg,...)3500b4a36abSbeveloper BGameSound::_Reserved_BGameSound_9(int32 arg, ...)
3510b4a36abSbeveloper {
3520b4a36abSbeveloper 	return B_ERROR;
3530b4a36abSbeveloper }
3540b4a36abSbeveloper 
3550b4a36abSbeveloper 
3560b4a36abSbeveloper status_t
_Reserved_BGameSound_10(int32 arg,...)3570b4a36abSbeveloper BGameSound::_Reserved_BGameSound_10(int32 arg, ...)
3580b4a36abSbeveloper {
3590b4a36abSbeveloper 	return B_ERROR;
3600b4a36abSbeveloper }
3610b4a36abSbeveloper 
3620b4a36abSbeveloper 
3630b4a36abSbeveloper status_t
_Reserved_BGameSound_11(int32 arg,...)3640b4a36abSbeveloper BGameSound::_Reserved_BGameSound_11(int32 arg, ...)
3650b4a36abSbeveloper {
3660b4a36abSbeveloper 	return B_ERROR;
3670b4a36abSbeveloper }
3680b4a36abSbeveloper 
3690b4a36abSbeveloper 
3700b4a36abSbeveloper status_t
_Reserved_BGameSound_12(int32 arg,...)3710b4a36abSbeveloper BGameSound::_Reserved_BGameSound_12(int32 arg, ...)
3720b4a36abSbeveloper {
3730b4a36abSbeveloper 	return B_ERROR;
3740b4a36abSbeveloper }
3750b4a36abSbeveloper 
3760b4a36abSbeveloper 
3770b4a36abSbeveloper status_t
_Reserved_BGameSound_13(int32 arg,...)3780b4a36abSbeveloper BGameSound::_Reserved_BGameSound_13(int32 arg, ...)
3790b4a36abSbeveloper {
3800b4a36abSbeveloper 	return B_ERROR;
3810b4a36abSbeveloper }
3820b4a36abSbeveloper 
3830b4a36abSbeveloper 
3840b4a36abSbeveloper status_t
_Reserved_BGameSound_14(int32 arg,...)3850b4a36abSbeveloper BGameSound::_Reserved_BGameSound_14(int32 arg, ...)
3860b4a36abSbeveloper {
3870b4a36abSbeveloper 	return B_ERROR;
3880b4a36abSbeveloper }
3890b4a36abSbeveloper 
3900b4a36abSbeveloper 
3910b4a36abSbeveloper status_t
_Reserved_BGameSound_15(int32 arg,...)3920b4a36abSbeveloper BGameSound::_Reserved_BGameSound_15(int32 arg, ...)
3930b4a36abSbeveloper {
3940b4a36abSbeveloper 	return B_ERROR;
3950b4a36abSbeveloper }
3960b4a36abSbeveloper 
3970b4a36abSbeveloper 
3980b4a36abSbeveloper status_t
_Reserved_BGameSound_16(int32 arg,...)3990b4a36abSbeveloper BGameSound::_Reserved_BGameSound_16(int32 arg, ...)
4000b4a36abSbeveloper {
4010b4a36abSbeveloper 	return B_ERROR;
4020b4a36abSbeveloper }
4030b4a36abSbeveloper 
4040b4a36abSbeveloper 
4050b4a36abSbeveloper status_t
_Reserved_BGameSound_17(int32 arg,...)4060b4a36abSbeveloper BGameSound::_Reserved_BGameSound_17(int32 arg, ...)
4070b4a36abSbeveloper {
4080b4a36abSbeveloper 	return B_ERROR;
4090b4a36abSbeveloper }
4100b4a36abSbeveloper 
4110b4a36abSbeveloper 
4120b4a36abSbeveloper status_t
_Reserved_BGameSound_18(int32 arg,...)4130b4a36abSbeveloper BGameSound::_Reserved_BGameSound_18(int32 arg, ...)
4140b4a36abSbeveloper {
4150b4a36abSbeveloper 	return B_ERROR;
4160b4a36abSbeveloper }
4170b4a36abSbeveloper 
4180b4a36abSbeveloper 
4190b4a36abSbeveloper status_t
_Reserved_BGameSound_19(int32 arg,...)4200b4a36abSbeveloper BGameSound::_Reserved_BGameSound_19(int32 arg, ...)
4210b4a36abSbeveloper {
4220b4a36abSbeveloper 	return B_ERROR;
4230b4a36abSbeveloper }
4240b4a36abSbeveloper 
4250b4a36abSbeveloper 
4260b4a36abSbeveloper status_t
_Reserved_BGameSound_20(int32 arg,...)4270b4a36abSbeveloper BGameSound::_Reserved_BGameSound_20(int32 arg, ...)
4280b4a36abSbeveloper {
4290b4a36abSbeveloper 	return B_ERROR;
4300b4a36abSbeveloper }
4310b4a36abSbeveloper 
4320b4a36abSbeveloper 
4330b4a36abSbeveloper status_t
_Reserved_BGameSound_21(int32 arg,...)4340b4a36abSbeveloper BGameSound::_Reserved_BGameSound_21(int32 arg, ...)
4350b4a36abSbeveloper {
4360b4a36abSbeveloper 	return B_ERROR;
4370b4a36abSbeveloper }
4380b4a36abSbeveloper 
4390b4a36abSbeveloper 
4400b4a36abSbeveloper status_t
_Reserved_BGameSound_22(int32 arg,...)4410b4a36abSbeveloper BGameSound::_Reserved_BGameSound_22(int32 arg, ...)
4420b4a36abSbeveloper {
4430b4a36abSbeveloper 	return B_ERROR;
4440b4a36abSbeveloper }
4450b4a36abSbeveloper 
4460b4a36abSbeveloper 
4470b4a36abSbeveloper status_t
_Reserved_BGameSound_23(int32 arg,...)4480b4a36abSbeveloper BGameSound::_Reserved_BGameSound_23(int32 arg, ...)
4490b4a36abSbeveloper {
4500b4a36abSbeveloper 	return B_ERROR;
4510b4a36abSbeveloper }
4520b4a36abSbeveloper 
4530b4a36abSbeveloper 
4540b4a36abSbeveloper status_t
_Reserved_BGameSound_24(int32 arg,...)4550b4a36abSbeveloper BGameSound::_Reserved_BGameSound_24(int32 arg, ...)
4560b4a36abSbeveloper {
4570b4a36abSbeveloper 	return B_ERROR;
4580b4a36abSbeveloper }
4590b4a36abSbeveloper 
4600b4a36abSbeveloper 
4610b4a36abSbeveloper status_t
_Reserved_BGameSound_25(int32 arg,...)4620b4a36abSbeveloper BGameSound::_Reserved_BGameSound_25(int32 arg, ...)
4630b4a36abSbeveloper {
4640b4a36abSbeveloper 	return B_ERROR;
4650b4a36abSbeveloper }
4660b4a36abSbeveloper 
4670b4a36abSbeveloper 
4680b4a36abSbeveloper status_t
_Reserved_BGameSound_26(int32 arg,...)4690b4a36abSbeveloper BGameSound::_Reserved_BGameSound_26(int32 arg, ...)
4700b4a36abSbeveloper {
4710b4a36abSbeveloper 	return B_ERROR;
4720b4a36abSbeveloper }
4730b4a36abSbeveloper 
4740b4a36abSbeveloper 
4750b4a36abSbeveloper status_t
_Reserved_BGameSound_27(int32 arg,...)4760b4a36abSbeveloper BGameSound::_Reserved_BGameSound_27(int32 arg, ...)
4770b4a36abSbeveloper {
4780b4a36abSbeveloper 	return B_ERROR;
4790b4a36abSbeveloper }
4800b4a36abSbeveloper 
4810b4a36abSbeveloper 
4820b4a36abSbeveloper status_t
_Reserved_BGameSound_28(int32 arg,...)4830b4a36abSbeveloper BGameSound::_Reserved_BGameSound_28(int32 arg, ...)
4840b4a36abSbeveloper {
4850b4a36abSbeveloper 	return B_ERROR;
4860b4a36abSbeveloper }
4870b4a36abSbeveloper 
4880b4a36abSbeveloper 
4890b4a36abSbeveloper status_t
_Reserved_BGameSound_29(int32 arg,...)4900b4a36abSbeveloper BGameSound::_Reserved_BGameSound_29(int32 arg, ...)
4910b4a36abSbeveloper {
4920b4a36abSbeveloper 	return B_ERROR;
4930b4a36abSbeveloper }
4940b4a36abSbeveloper 
4950b4a36abSbeveloper 
4960b4a36abSbeveloper status_t
_Reserved_BGameSound_30(int32 arg,...)4970b4a36abSbeveloper BGameSound::_Reserved_BGameSound_30(int32 arg, ...)
4980b4a36abSbeveloper {
4990b4a36abSbeveloper 	return B_ERROR;
5000b4a36abSbeveloper }
5010b4a36abSbeveloper 
5020b4a36abSbeveloper 
5030b4a36abSbeveloper status_t
_Reserved_BGameSound_31(int32 arg,...)5040b4a36abSbeveloper BGameSound::_Reserved_BGameSound_31(int32 arg, ...)
5050b4a36abSbeveloper {
5060b4a36abSbeveloper 	return B_ERROR;
5070b4a36abSbeveloper }
5080b4a36abSbeveloper 
5090b4a36abSbeveloper 
5100b4a36abSbeveloper status_t
_Reserved_BGameSound_32(int32 arg,...)5110b4a36abSbeveloper BGameSound::_Reserved_BGameSound_32(int32 arg, ...)
5120b4a36abSbeveloper {
5130b4a36abSbeveloper 	return B_ERROR;
5140b4a36abSbeveloper }
5150b4a36abSbeveloper 
5160b4a36abSbeveloper 
5170b4a36abSbeveloper status_t
_Reserved_BGameSound_33(int32 arg,...)5180b4a36abSbeveloper BGameSound::_Reserved_BGameSound_33(int32 arg, ...)
5190b4a36abSbeveloper {
5200b4a36abSbeveloper 	return B_ERROR;
5210b4a36abSbeveloper }
5220b4a36abSbeveloper 
5230b4a36abSbeveloper 
5240b4a36abSbeveloper status_t
_Reserved_BGameSound_34(int32 arg,...)5250b4a36abSbeveloper BGameSound::_Reserved_BGameSound_34(int32 arg, ...)
5260b4a36abSbeveloper {
5270b4a36abSbeveloper 	return B_ERROR;
5280b4a36abSbeveloper }
5290b4a36abSbeveloper 
5300b4a36abSbeveloper 
5310b4a36abSbeveloper status_t
_Reserved_BGameSound_35(int32 arg,...)5320b4a36abSbeveloper BGameSound::_Reserved_BGameSound_35(int32 arg, ...)
5330b4a36abSbeveloper {
5340b4a36abSbeveloper 	return B_ERROR;
5350b4a36abSbeveloper }
5360b4a36abSbeveloper 
5370b4a36abSbeveloper 
5380b4a36abSbeveloper status_t
_Reserved_BGameSound_36(int32 arg,...)5390b4a36abSbeveloper BGameSound::_Reserved_BGameSound_36(int32 arg, ...)
5400b4a36abSbeveloper {
5410b4a36abSbeveloper 	return B_ERROR;
5420b4a36abSbeveloper }
5430b4a36abSbeveloper 
5440b4a36abSbeveloper 
5450b4a36abSbeveloper status_t
_Reserved_BGameSound_37(int32 arg,...)5460b4a36abSbeveloper BGameSound::_Reserved_BGameSound_37(int32 arg, ...)
5470b4a36abSbeveloper {
5480b4a36abSbeveloper 	return B_ERROR;
5490b4a36abSbeveloper }
5500b4a36abSbeveloper 
5510b4a36abSbeveloper 
5520b4a36abSbeveloper status_t
_Reserved_BGameSound_38(int32 arg,...)5530b4a36abSbeveloper BGameSound::_Reserved_BGameSound_38(int32 arg, ...)
5540b4a36abSbeveloper {
5550b4a36abSbeveloper 	return B_ERROR;
5560b4a36abSbeveloper }
5570b4a36abSbeveloper 
5580b4a36abSbeveloper 
5590b4a36abSbeveloper status_t
_Reserved_BGameSound_39(int32 arg,...)5600b4a36abSbeveloper BGameSound::_Reserved_BGameSound_39(int32 arg, ...)
5610b4a36abSbeveloper {
5620b4a36abSbeveloper 	return B_ERROR;
5630b4a36abSbeveloper }
5640b4a36abSbeveloper 
5650b4a36abSbeveloper 
5660b4a36abSbeveloper status_t
_Reserved_BGameSound_40(int32 arg,...)5670b4a36abSbeveloper BGameSound::_Reserved_BGameSound_40(int32 arg, ...)
5680b4a36abSbeveloper {
5690b4a36abSbeveloper 	return B_ERROR;
5700b4a36abSbeveloper }
5710b4a36abSbeveloper 
5720b4a36abSbeveloper 
5730b4a36abSbeveloper status_t
_Reserved_BGameSound_41(int32 arg,...)5740b4a36abSbeveloper BGameSound::_Reserved_BGameSound_41(int32 arg, ...)
5750b4a36abSbeveloper {
5760b4a36abSbeveloper 	return B_ERROR;
5770b4a36abSbeveloper }
5780b4a36abSbeveloper 
5790b4a36abSbeveloper 
5800b4a36abSbeveloper status_t
_Reserved_BGameSound_42(int32 arg,...)5810b4a36abSbeveloper BGameSound::_Reserved_BGameSound_42(int32 arg, ...)
5820b4a36abSbeveloper {
5830b4a36abSbeveloper 	return B_ERROR;
5840b4a36abSbeveloper }
5850b4a36abSbeveloper 
5860b4a36abSbeveloper 
5870b4a36abSbeveloper status_t
_Reserved_BGameSound_43(int32 arg,...)5880b4a36abSbeveloper BGameSound::_Reserved_BGameSound_43(int32 arg, ...)
5890b4a36abSbeveloper {
5900b4a36abSbeveloper 	return B_ERROR;
5910b4a36abSbeveloper }
5920b4a36abSbeveloper 
5930b4a36abSbeveloper 
5940b4a36abSbeveloper status_t
_Reserved_BGameSound_44(int32 arg,...)5950b4a36abSbeveloper BGameSound::_Reserved_BGameSound_44(int32 arg, ...)
5960b4a36abSbeveloper {
5970b4a36abSbeveloper 	return B_ERROR;
5980b4a36abSbeveloper }
5990b4a36abSbeveloper 
6000b4a36abSbeveloper 
6010b4a36abSbeveloper status_t
_Reserved_BGameSound_45(int32 arg,...)6020b4a36abSbeveloper BGameSound::_Reserved_BGameSound_45(int32 arg, ...)
6030b4a36abSbeveloper {
6040b4a36abSbeveloper 	return B_ERROR;
6050b4a36abSbeveloper }
6060b4a36abSbeveloper 
6070b4a36abSbeveloper 
6080b4a36abSbeveloper status_t
_Reserved_BGameSound_46(int32 arg,...)6090b4a36abSbeveloper BGameSound::_Reserved_BGameSound_46(int32 arg, ...)
6100b4a36abSbeveloper {
6110b4a36abSbeveloper 	return B_ERROR;
6120b4a36abSbeveloper }
6130b4a36abSbeveloper 
6140b4a36abSbeveloper 
6150b4a36abSbeveloper status_t
_Reserved_BGameSound_47(int32 arg,...)6160b4a36abSbeveloper BGameSound::_Reserved_BGameSound_47(int32 arg, ...)
6170b4a36abSbeveloper {
6180b4a36abSbeveloper 	return B_ERROR;
6190b4a36abSbeveloper }
620