Two additional functions to support gain selection for media files (sound events).
Allows better compatibility with Zeta's preference application. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8571 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -31,10 +31,18 @@ virtual status_t GetRefFor(
|
||||
const char * type,
|
||||
const char * item,
|
||||
entry_ref * out_ref);
|
||||
status_t GetAudioGainFor(
|
||||
const char * type,
|
||||
const char * item,
|
||||
float * out_audio_gain);
|
||||
virtual status_t SetRefFor(
|
||||
const char * type,
|
||||
const char * item,
|
||||
const entry_ref & ref);
|
||||
status_t SetAudioGainFor(
|
||||
const char * type,
|
||||
const char * item,
|
||||
float audio_gain);
|
||||
virtual status_t RemoveRefFor( // This might better be called "ClearRefFor"
|
||||
const char * type, // but it's too late now...
|
||||
const char * item,
|
||||
|
||||
@@ -185,6 +185,17 @@ BMediaFiles::GetRefFor(const char *type,
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BMediaFiles::GetAudioGainFor(const char * type,
|
||||
const char * item,
|
||||
float * out_audio_gain)
|
||||
{
|
||||
UNIMPLEMENTED();
|
||||
*out_audio_gain = 1.0f;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
/* virtual */ status_t
|
||||
BMediaFiles::SetRefFor(const char *type,
|
||||
const char *item,
|
||||
@@ -211,6 +222,16 @@ BMediaFiles::SetRefFor(const char *type,
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BMediaFiles::SetAudioGainFor(const char * type,
|
||||
const char * item,
|
||||
float audio_gain)
|
||||
{
|
||||
UNIMPLEMENTED();
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
/* virtual */ status_t
|
||||
BMediaFiles::RemoveRefFor(const char *type,
|
||||
const char *item,
|
||||
|
||||
Reference in New Issue
Block a user