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:
beveloper
2003-01-15 22:17:43 +00:00
parent f790124713
commit 319b1b3085
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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,
+8 -8
View File
@@ -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;