Files
haiku-beta6/src/kits/media/Sound.cpp
T
Ingo Weinhold 758b1d0e05 Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
  declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
  explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
  something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
  'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
  is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
  Otherwise the an inner class with that name is considered as friend.
  gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-12 23:27:14 +00:00

188 lines
3.2 KiB
C++

/***********************************************************************
* AUTHOR: Marcus Overhagen
* FILE: Sound.cpp
* DESCR:
***********************************************************************/
#include <Sound.h>
#include "debug.h"
/*************************************************************
* public BSound
*************************************************************/
BSound::BSound( void * data,
size_t size,
const media_raw_audio_format & format,
bool free_when_done)
{
UNIMPLEMENTED();
}
BSound::BSound( const entry_ref * sound_file,
bool load_into_memory)
{
UNIMPLEMENTED();
}
status_t
BSound::InitCheck()
{
UNIMPLEMENTED();
return B_OK;
}
BSound *
BSound::AcquireRef()
{
UNIMPLEMENTED();
return 0;
}
bool
BSound::ReleaseRef()
{
UNIMPLEMENTED();
return 0;
}
int32
BSound::RefCount() const
{
UNIMPLEMENTED();
return 0;
} // unreliable!
/* virtual */ bigtime_t
BSound::Duration() const
{
UNIMPLEMENTED();
return 0;
}
/* virtual */ const media_raw_audio_format &
BSound::Format() const
{
UNIMPLEMENTED();
return _m_format;
}
/* virtual */ const void *
BSound::Data() const
{
UNIMPLEMENTED();
return 0;
} /* returns NULL for files */
/* virtual */ off_t
BSound::Size() const
{
UNIMPLEMENTED();
return 0;
}
/* virtual */ bool
BSound::GetDataAt(off_t offset,
void * into_buffer,
size_t buffer_size,
size_t * out_used)
{
UNIMPLEMENTED();
return 0;
}
/*************************************************************
* protected BSound
*************************************************************/
BSound::BSound(const media_raw_audio_format & format)
{
UNIMPLEMENTED();
}
/* virtual */ status_t
BSound::Perform(int32 code,...)
{
UNIMPLEMENTED();
return 0;
}
/*************************************************************
* private BSound
*************************************************************/
/*
BSound::BSound(const BSound &); // unimplemented
BSound & BSound::operator=(const BSound &); // unimplemented
*/
void
BSound::Reset()
{
UNIMPLEMENTED();
}
/* virtual */
BSound::~BSound()
{
UNIMPLEMENTED();
}
void
BSound::free_data()
{
UNIMPLEMENTED();
}
/* static */ status_t
BSound::load_entry(void * arg)
{
UNIMPLEMENTED();
return 0;
}
void
BSound::loader_thread()
{
UNIMPLEMENTED();
}
bool
BSound::check_stop()
{
UNIMPLEMENTED();
return 0;
}
/*************************************************************
* public BSound
*************************************************************/
/* virtual */ status_t
BSound::BindTo(BSoundPlayer * player,
const media_raw_audio_format & format)
{
UNIMPLEMENTED();
return 0;
}
/* virtual */ status_t
BSound::UnbindFrom(BSoundPlayer * player)
{
UNIMPLEMENTED();
return 0;
}
/*************************************************************
* private BSound
*************************************************************/
status_t BSound::_Reserved_Sound_0(void *) { return B_ERROR; }
status_t BSound::_Reserved_Sound_1(void *) { return B_ERROR; }
status_t BSound::_Reserved_Sound_2(void *) { return B_ERROR; }
status_t BSound::_Reserved_Sound_3(void *) { return B_ERROR; }
status_t BSound::_Reserved_Sound_4(void *) { return B_ERROR; }
status_t BSound::_Reserved_Sound_5(void *) { return B_ERROR; }