ubports / anbox

UT no longer packages Anbox and instead packages Waydroid. See https://gitlab.com/ubports/development/core/packaging/waydroid
GNU General Public License v3.0
22 stars 8 forks source link

No audio on Xperia X #41

Open henri2h opened 4 years ago

henri2h commented 4 years ago
Output of anbox system-info

``` library "libgui.so" wasn't loaded and RTLD_NOLOAD prevented it version: local-/bin/sh: 1: git: not found cpu: arch: brand: features: os: name: Ubuntu version: 16.04.6 LTS (Xenial Xerus) snap-based: false kernel: version: Linux version 4.4.144-g9f246a1 (jenkins@ubports-build) (gcc version 4.9 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Mar 24 11:13:32 CET 2020 binder: true ashmem: true graphics: egl: vendor: Android version: 1.4 Android META-EGL extensions: - EGL_KHR_get_all_proc_addresses - EGL_ANDROID_presentation_time - EGL_KHR_swap_buffers_with_damage - EGL_ANDROID_create_native_client_buffer - EGL_ANDROID_front_buffer_auto_refresh - EGL_KHR_image - EGL_KHR_image_base - EGL_KHR_lock_surface - EGL_KHR_gl_texture_2D_image - EGL_KHR_gl_texture_3D_image - EGL_KHR_gl_texture_cubemap_image - EGL_KHR_gl_renderbuffer_image - EGL_KHR_reusable_sync - EGL_KHR_fence_sync - EGL_KHR_create_context - EGL_KHR_surfaceless_context - EGL_EXT_create_context_robustness - EGL_ANDROID_image_native_buffer - EGL_KHR_wait_sync - EGL_ANDROID_recordable - EGL_KHR_partial_update - EGL_KHR_create_context_no_error - EGL_KHR_mutable_render_buffer - EGL_EXT_yuv_surface - EGL_EXT_protected_content - EGL_HYBRIS_native_buffer2 - EGL_HYBRIS_WL_acquire_native_buffer - EGL_WL_bind_wayland_display gles2: vendor: Qualcomm vendor: OpenGL ES 2.0 (OpenGL ES 3.2 V@207.0 (GIT@8209866, I528a81912f) extensions: - GL_OES_EGL_image - GL_OES_EGL_image_external - GL_OES_EGL_sync - GL_OES_vertex_half_float - GL_OES_framebuffer_object - GL_OES_rgb8_rgba8 - GL_OES_compressed_ETC1_RGB8_texture - GL_AMD_compressed_ATC_texture - GL_KHR_texture_compression_astc_ldr - GL_KHR_texture_compression_astc_hdr - GL_OES_texture_compression_astc - GL_OES_texture_npot - GL_EXT_texture_filter_anisotropic - GL_EXT_texture_format_BGRA8888 - GL_OES_texture_3D - GL_EXT_color_buffer_float - GL_EXT_color_buffer_half_float - GL_QCOM_alpha_test - GL_OES_```depth24 - GL_OES_packed_depth_stencil - GL_OES_depth_texture - GL_OES_depth_texture_cube_map - GL_EXT_sRGB - GL_OES_texture_float - GL_OES_texture_float_linear - GL_OES_texture_half_float - GL_OES_texture_half_float_linear - GL_EXT_texture_type_2_10_10_10_REV - GL_EXT_texture_sRGB_decode - GL_OES_element_index_uint - GL_EXT_copy_image - GL_EXT_geometry_shader - GL_EXT_tessellation_shader - GL_OES_texture_stencil8 - GL_EXT_shader_io_blocks - GL_OES_shader_image_atomic - GL_OES_sample_variables - GL_EXT_texture_border_clamp - GL_EXT_multisampled_render_to_texture - GL_OES_shader_multisample_interpolation - GL_EXT_texture_cube_map_array - GL_EXT_draw_buffers_indexed - GL_EXT_gpu_shader5 - GL_EXT_robustness - GL_EXT_texture_buffer - GL_EXT_shader_framebuffer_fetch - GL_ARM_shader_framebuffer_fetch_depth_stencil - GL_OES_texture_storage_multisample_2d_array - GL_OES_sample_shading - GL_OES_get_program_binary - GL_EXT_debug_label - GL_KHR_blend_equation_advanced - GL_KHR_blend_equation_advanced_coherent - GL_QCOM_tiled_rendering - GL_ANDROID_extension_pack_es31a - GL_EXT_primitive_bounding_box - GL_OES_standard_derivatives - GL_OES_vertex_array_object - GL_EXT_disjoint_timer_query - GL_KHR_debug - GL_EXT_YUV_target - GL_EXT_sRGB_write_control - GL_EXT_texture_norm16 - GL_EXT_discard_framebuffer - GL_OES_surfaceless_context - GL_OVR_multiview - GL_OVR_multiview2 - GL_EXT_texture_sRGB_R8 - GL_ARB_texture_barrier - GL_KHR_no_error - GL_EXT_debug_mark - GL_OES_EGL_image_external_essl3 - GL_OVR_multiview_multisampled_render_to_texture - GL_EXT_buffer_storage - GL_EXT_blit_framebuffer_params - GL_EXT_clip_cull_distance - GL_EXT_protected_textures - GL_EXT_shader_non_constant_global_initializers ```

Please describe your problem: When trying to open an app and play music, no sound is comming out despite sound working with native apps.

What were you expecting?: Hearing the audio :)

Additional info: The fix describe by @c4pp4 in the uports' forum post (Sony Xperia X (suzu/F5121 & F5122)) resolve the issue.

The issue has been marked as resolved in https://github.com/anbox/anbox/issues/904 but looks like the issue is still here.

Fix proposed Replace the /system/etc/media_codecs.xml file in this image by this one http://dpaste.com/2H2CP58

This file ```xml ```

Not really sure what it does, but tested on my device (Xperia X) and it resolve the issue. May be further test is needed ?

Verevka commented 4 years ago

This work! Xiaomi MI6 (halium9.0)