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:
beveloper
2004-08-15 11:54:17 +00:00
parent f28fc0257e
commit 7562d5508a
2 changed files with 29 additions and 0 deletions
+8
View File
@@ -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,
+21
View File
@@ -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,