added format change function
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3723 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -22,3 +22,13 @@ MixerOutput::MediaOutput()
|
|||||||
{
|
{
|
||||||
return fOutput;
|
return fOutput;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
MixerOutput::ChangeFormat(const media_multi_audio_format &format)
|
||||||
|
{
|
||||||
|
fOutput.format.u.raw_audio = format;
|
||||||
|
fix_multiaudio_format(&fOutput.format.u.raw_audio);
|
||||||
|
|
||||||
|
PRINT_OUTPUT("MixerOutput::ChangeFormat", fOutput);
|
||||||
|
PRINT_CHANNEL_MASK(fOutput.format);
|
||||||
|
}
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ public:
|
|||||||
|
|
||||||
media_output & MediaOutput();
|
media_output & MediaOutput();
|
||||||
|
|
||||||
|
void ChangeFormat(const media_multi_audio_format &format);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MixerCore *fCore;
|
MixerCore *fCore;
|
||||||
media_output fOutput;
|
media_output fOutput;
|
||||||
|
|||||||
Reference in New Issue
Block a user