ukasz123 / soundpool

Soundpool plugin for Flutter
87 stars 64 forks source link

sample_rate, value:48000 audio files are not play in android #73

Open Zuhaib009 opened 3 years ago

Zuhaib009 commented 3 years ago

D/voice_scence_discern(25716): add name:sample_rate, value:48000 V/voice_scence_discern(25716): add name:sample_rate value:48000 list:0x7d730d64c0 D/voice_scence_discern(25716): add name:channels, value:2 V/voice_scence_discern(25716): add name:channels value:2 list:0x7d730d64c0 D/voice_scence_discern(25716): get scence process pid:25716, V/voice_scence_discern(25716): this process not in init apk. apk_list:0x7d28afe980

these sounds are not playing in some android devices using soundpool please help me

Zuhaib009 commented 3 years ago

when i play then it start distortion

ukasz123 commented 3 years ago

What sounds? What devices are affected?

Zuhaib009 commented 3 years ago

i use this plugin for drumpad app which contains short sounds. in iphone or ipad it work fine. but in android when i play sound which have sample per bits 24 are not able to play. and start distortion sound

Screenshot 2021-06-12 at 7 42 23 PM
Zuhaib009 commented 3 years ago

all android devices have this issue

ukasz123 commented 3 years ago

Well, I can confirm some of Android devices have this issue. On my older device the problem occurs.

According to the Android audio support documentation PCM/WAVE files with 24 bits per sample are not supported. @Zuhaib009, can you check if changing the sample rate to 44.1 kHz and 16 bits per sample would fix your problem?