I'm trying to develop an application to play the audio with my haptic data. I can realize the haptic effect of HapticGenerator on Pixel 4 XL. but I can't understand the section Audio-coupled haptics: Tips for implementing in the guidance. How should I generate the special OGG file and write the implementation code?
How to generate a ogg file with haptic data and to realize audio-coupled haptics effects described in the guidance UX Foundation for Haptic Framework
598 Views Asked by Mu San At
1
There are 1 best solutions below
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in ANDROID-VIBRATION
- How to add haptics to Button in home screen widget (Glance API) in android
- How to prevent vibration on Android to stop working?
- How to enable the "vibration and tactile feedback" in the code?
- Vibrator service not working for Android version 26+
- Why the VibrationEffect is not working on Samsung devices only
- Vibrator hasAmplitudeControl not working properly
- Vibration Mode missing in android studio emulator
- How can I check if haptic feedback enabled in system on Android 13 or higher?
- On Android how to detect vibrator quality or vibrator type?
- Vibration is gone when running Android app in background
- Android how to use vibration when app is closed or when phone is locked
- Incoming Phone Call notification has no ringtone sound or vibration
- Vibration on button click not working in Android Studio
- Android 13 vibration is not working when "Vibration and haptics" is off
- Can't detect vibrator-service (vibratorManager) on Android 13 emulator
Related Questions in HAPTIC-FEEDBACK
- How to check if Haptic Engine (UIFeedbackGenerator) is supported
- How to set up CHAI3D correctly with an SDL Project on Visual Studio 2013
- Error with H3DNodeDatabase PhantomDevice::database in PhantomDevice.cpp
- Which is equivalent in Android for iOS selectionChanged() haptic?
- Direct Volume Rendering Texture overlapping artifacts
- Android ignore global haptic feedback settings in API 33+
- CHHapticEngine not generating haptic feedback nor throws error?
- Add haptic to drag and drop (draggable, dropDestination)
- How to disable text selection for mobile long press but preserve haptic feedback?
- Cannot get Haptic Feedback to work with Swift
- Is there a way to get my Apple Watch App to vibrate when the screen sleeps?
- Turn off trackpad haptic feedback in Xcode Interface Builder?
- Remove Haptic Feedback from UIPickerView
- iOS Haptic Feedback not firing
- Custom Length Vibrations For Notifications in Swift
Related Questions in AUDIOEFFECT
- How to enable echo-cancellation on Android Voip App?
- Applying audio effects from p5.js sound library to AudioBuffer source
- Is it possible apply audio effects to all sounds coming out of a specific audio endpoint
- How to generate a ogg file with haptic data and to realize audio-coupled haptics effects described in the guidance UX Foundation for Haptic Framework
- How to save Reverb Effects Video in android?
- How to set Values for Reverb Effects in android?
- How to add an Android AudioEffect LowPass Filter?
- Android PresetReverb and EnvironmentalReverb not working
- Adding Reverb effect to MediaPlayer in 'Mobile App (Xamarin.Forms)' project
- Create custom Audio Effect in Android
- Audio Convolution output is longer than input, how can i get around this when feeding data back to a stream of fixed length?
- How does the Diode work from MorphVOX Pro?
- How to apply 3D audio effect on streaming audio in Android
- Vocal Effects on Real Time Audio
- Android Equalizer - How to use ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There are two ways to explore audio+haptic and Android. One is using HapticGenerator which you can just attach the effect to your playback and the effect will generate haptic data from your audio data. Another one is using OGG file. As mentioned in Audio-coupled haptics: Tips for implementing, you will need to put your audio and haptic data in the same ogg file where haptic will be extra channels besides audio channels. For instance, you have stereo audio and one haptic channel data, you then will have stereo audio at the first two channel and haptic data at the third channel. And then you will need to specify the haptic channel count via ANDROID_HAPTIC in the metadata. Given Android only supports up to two haptic channels, any values greater than 2 will be invalid. When playing such an OGG file using MediaPlayer, you will need to call
MediaPlayer.setAudioAttributes(new AudioAttributes.Builder( ).setHapticChannelsMuted(false))to unmute haptic channels.