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