removed compile errors and functionality!
do not use this app. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2457 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#include "MediaPrefsSlider.h"
|
#include "MediaPrefsSlider.h"
|
||||||
#include "VolumeControl.h"
|
//#include "VolumeControl.h"
|
||||||
|
|
||||||
|
|
||||||
MediaPrefsSlider::MediaPrefsSlider( BRect r, const char *name, const char *label, BMessage *model,
|
MediaPrefsSlider::MediaPrefsSlider( BRect r, const char *name, const char *label, BMessage *model,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "MediaPrefsApp.h"
|
#include "MediaPrefsApp.h"
|
||||||
#include "VolumeControl.h"
|
//#include "VolumeControl.h"
|
||||||
|
|
||||||
|
|
||||||
MediaPrefsWindow::MediaPrefsWindow( BRect wRect )
|
MediaPrefsWindow::MediaPrefsWindow( BRect wRect )
|
||||||
@@ -23,14 +23,14 @@ MediaPrefsWindow::MediaPrefsWindow( BRect wRect )
|
|||||||
view->AddChild( slider );
|
view->AddChild( slider );
|
||||||
|
|
||||||
// use private API
|
// use private API
|
||||||
if ( MediaKitPrivate::GetMasterVolume( &fLeft, &fRight ) == B_OK ) {
|
// if ( MediaKitPrivate::GetMasterVolume( &fLeft, &fRight ) == B_OK ) {
|
||||||
// left,right range is 0..9.999
|
// // left,right range is 0..9.999
|
||||||
iLeft = (int32)( fLeft / vI2F );
|
// iLeft = (int32)( fLeft / vI2F );
|
||||||
iRight = (int32)( fRight / vI2F );
|
// iRight = (int32)( fRight / vI2F );
|
||||||
} else {
|
// } else {
|
||||||
iLeft = 0;
|
iLeft = 0;
|
||||||
iRight = 0;
|
iRight = 0;
|
||||||
}
|
// }
|
||||||
|
|
||||||
slider->SetValueFor( 0, iLeft );
|
slider->SetValueFor( 0, iLeft );
|
||||||
slider->SetValueFor( 1, iRight );
|
slider->SetValueFor( 1, iRight );
|
||||||
@@ -55,7 +55,7 @@ void MediaPrefsWindow::MessageReceived( BMessage *msg )
|
|||||||
float fLeft = float( iLeft ) * vI2F;
|
float fLeft = float( iLeft ) * vI2F;
|
||||||
float fRight = float( iRight ) * vI2F;
|
float fRight = float( iRight ) * vI2F;
|
||||||
|
|
||||||
MediaKitPrivate::SetMasterVolume( fLeft, fRight );
|
// MediaKitPrivate::SetMasterVolume( fLeft, fRight );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user