- if( mHapticInitialized )
- {
- if ( filePath.size() == 0 )
- {
- DEBUG_PRINTF( "File Path can't be NULL!\n" );
- return;
- }
-
- int errorCode = haptic_vibrate_file_with_detail( mDeviceHandle, filePath.c_str(), HAPTIC_ITERATION_ONCE, HAPTIC_FEEDBACK_AUTO, HAPTIC_PRIORITY_MIN, NULL );
- if( errorCode != 0 )
- {
- DEBUG_PRINTF( "PlayHaptic() failed with error code: %d\n", errorCode );
- }
- }
- else
- {
- DEBUG_PRINTF( "HapticPlayer is not Initialized\n" );
- }