Return an error in BSound methods, since they aren't implemented. Should
fix bug #1573, although I can't really test. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22962 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+10
-10
@@ -30,21 +30,21 @@ BSound::InitCheck()
|
|||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
|
|
||||||
return B_OK;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
BSound *
|
BSound *
|
||||||
BSound::AcquireRef()
|
BSound::AcquireRef()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
return 0;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
BSound::ReleaseRef()
|
BSound::ReleaseRef()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
return 0;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32
|
int32
|
||||||
@@ -72,7 +72,7 @@ BSound::Format() const
|
|||||||
BSound::Data() const
|
BSound::Data() const
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
return 0;
|
return NULL;
|
||||||
} /* returns NULL for files */
|
} /* returns NULL for files */
|
||||||
|
|
||||||
/* virtual */ off_t
|
/* virtual */ off_t
|
||||||
@@ -89,7 +89,7 @@ BSound::GetDataAt(off_t offset,
|
|||||||
size_t * out_used)
|
size_t * out_used)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
return 0;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
@@ -105,7 +105,7 @@ BSound::BSound(const media_raw_audio_format & format)
|
|||||||
BSound::Perform(int32 code,...)
|
BSound::Perform(int32 code,...)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
return 0;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
@@ -139,7 +139,7 @@ BSound::free_data()
|
|||||||
BSound::load_entry(void * arg)
|
BSound::load_entry(void * arg)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
return 0;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -152,7 +152,7 @@ bool
|
|||||||
BSound::check_stop()
|
BSound::check_stop()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
return 0;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
@@ -164,14 +164,14 @@ BSound::BindTo(BSoundPlayer * player,
|
|||||||
const media_raw_audio_format & format)
|
const media_raw_audio_format & format)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
return 0;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* virtual */ status_t
|
/* virtual */ status_t
|
||||||
BSound::UnbindFrom(BSoundPlayer * player)
|
BSound::UnbindFrom(BSoundPlayer * player)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
return 0;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user