public EngineOptions onCreateEngineOptions() {
instance = this;
mCamera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
return new EngineOptions(true, ScreenOrientation.LANDSCAPE_FIXED,
new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), mCamera)).setNeedsSounds(true);
}
showing an error while enabling the sound it is showing an error
The method setNeedsSound(boolean) is undefined for the type EngineOptions
also tried
return new EngineOptions(true, ScreenOrientation.LANDSCAPE_FIXED,
new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), mCamera)).getAudioOptions().setNeedsSound(true);
but showing error
Type mismatch: cannot convert from AudioOptions to EngineOptions
try it this way