ar1st0crat/NWaves

Playing saved audio

MAminnn opened this issue · 2 comments

Hi, when I save a wave file as the output like this
waveFile.SaveTo(stream);
it will save successfully.
but it can't Play it with Media Player in some devices like Xiaomi devices. but it works on Samsung device
Can do something to make the output playable on all android devices?

How do you expect me to answer your question without any details? Show your code. Maybe you're passing wrong playback parameters. What do you mean by 'it can't play'? Is it just a silence? Or does your app throw exceptions?

Did you try opening your saved WAV file on PC, in NWaves demo apps (I assume you're saving it like I suggested here)? If it's loaded OK, then everything's fine, and your problems are not related to NWaves library.

PS. Also, maybe you should experiment with the sampling rate. Change 44100 Hz to 16000 Hz and see what will happen.

I don't think this issue relates to my code because the recorder and saved audio can play on windows and Samsung devices and also on Huawei devices.
this issue is just with Xiaomi devices which.
my mean of 'it can't play' is just silence and there is no exception.
the code is just the same as my previous question
maybe I should ask this question in the Xiaomi community.