tactilefeedback/tactilefeedbackresolver/plugins/tactileaudioplugin/src/tactileaudioplayer.cpp
changeset 15 8c57b70b4bf3
parent 0 d54f32e146dd
child 22 4838b44af342
equal deleted inserted replaced
14:603911b3f166 15:8c57b70b4bf3
    20 #include <e32debug.h>
    20 #include <e32debug.h>
    21 
    21 
    22 #include <centralrepository.h>
    22 #include <centralrepository.h>
    23 #include <ecom/implementationproxy.h>
    23 #include <ecom/implementationproxy.h>
    24 
    24 
    25 #include <audiopreference.h>
    25 #include <AudioPreference.h>
    26 #include <mda/common/audio.h>
    26 #include <mda/common/audio.h>
    27 #include <mdaaudiooutputstream.h>
    27 #include <mdaaudiooutputstream.h>
    28 
    28 
    29 #include "tactilefeedbackprivatecrkeys.h"
    29 #include "tactilefeedbackprivatecrkeys.h"
    30 #include "tactilefeedbacktrace.h"
    30 #include "tactilefeedbacktrace.h"
   132     
   132     
   133     switch ( aFeedback )
   133     switch ( aFeedback )
   134         {
   134         {
   135         case ETouchFeedbackBasic:               // flow through
   135         case ETouchFeedbackBasic:               // flow through
   136         case ETouchFeedbackBasicButton:         // flow through
   136         case ETouchFeedbackBasicButton:         // flow through
   137         case ETouchFeedbackList:                // flow through
   137         case ETouchFeedbackBasicItem:           // flow through
   138         case ETouchFeedbackBoundaryList:        // flow through
   138         case ETouchFeedbackBounceEffect:        // flow through
   139         case ETouchFeedbackSlider:              // flow through
   139         case ETouchFeedbackBasicSlider:         // flow through
   140         case ETouchFeedbackEdit:                // flow through
   140         case ETouchFeedbackEditor:              // flow through
   141         case ETouchFeedbackSensitiveInput:
   141         case ETouchFeedbackSensitiveKeypad:
   142         case ETouchFeedbackLineSelection:       // flow through
   142         case ETouchFeedbackLineSelection:       // flow through
   143         case ETouchFeedbackBlankSelection:      // flow through
   143         case ETouchFeedbackBlankSelection:      // flow through
   144         case ETouchFeedbackTextSelection:       // flow through
   144         case ETouchFeedbackTextSelection:       // flow through
   145         case ETouchFeedbackEmptyLineSelection:  // flow through
   145         case ETouchFeedbackEmptyLineSelection:  // flow through
   146         case ETouchFeedbackTab:                 // flow through
       
   147         case ETouchFeedbackPopUp:               // flow through
   146         case ETouchFeedbackPopUp:               // flow through
   148         case ETouchFeedbackIncreasingPopUp:     // flow through
   147         case ETouchFeedbackPopupOpen:           // flow through
   149         case ETouchFeedbackDecreasingPopUp:     // flow through
   148         case ETouchFeedbackPopupClose:          // flow through
   150         case ETouchFeedbackFlick:               // flow through
   149         case ETouchFeedbackItemScroll:          // flow through
   151         case ETouchFeedbackCheckbox:            // flow through
   150         case ETouchFeedbackCheckbox:            // flow through
   152         case ETouchFeedbackCharacterInputButton:
   151         case ETouchFeedbackMultitouchActivate:
   153         case ETouchFeedbackMultiTouchRecognized:
       
   154             volumeIndex = 0;
   152             volumeIndex = 0;
   155             break;
   153             break;
   156         case ETouchFeedbackSensitive:           // flow through
   154         case ETouchFeedbackSensitive:           // flow through
   157         case ETouchFeedbackSensitiveButton:     // flow through
   155         case ETouchFeedbackSensitiveButton:     // flow through
   158         case ETouchFeedbackSensitiveList:      
   156         case ETouchFeedbackSensitiveItem:      
   159             volumeIndex = 1;
   157             volumeIndex = 1;
   160             break;
   158             break;
   161         default:
   159         default:
   162             // should not be there at all
   160             // should not be there at all
   163             TRACE2( "CTactileAudioPlayer::PlayFeedback - %d is not a feedback type - returning", aFeedback );
   161             TRACE2( "CTactileAudioPlayer::PlayFeedback - %d is not a feedback type - returning", aFeedback );