APlay icon indicating copy to clipboard operation
APlay copied to clipboard

can't play opus file

Open TheNasirKhan opened this issue 5 years ago • 7 comments

it's playing m4a, mp3 file but not opus and flac even though I have seen cases of opus and flac in this lib

TheNasirKhan avatar Jun 21 '19 07:06 TheNasirKhan

Hi @TheNasirKhan ,this lib not fully tested for all format, if you encounter some situation. You can do help to improve this lib.

In this situation, could you provide the file that not being play well in your description, that may help me alot, thanks😄

CodeEagle avatar Jun 21 '19 10:06 CodeEagle

Sure,

Here it is.

opus.opus.zip

TheNasirKhan avatar Jun 21 '19 10:06 TheNasirKhan

Hi @TheNasirKhan , I'll check it out later

CodeEagle avatar Jun 21 '19 10:06 CodeEagle

Okay, Thanks.

TheNasirKhan avatar Jun 21 '19 10:06 TheNasirKhan

The log shows that Audio File Unsupported File Type(typ?) I'll refractor the code with combine and redesign decode component , maybe this will solved that time.

CodeEagle avatar Jun 23 '19 23:06 CodeEagle

mark https://github.com/DougPA/AVAudioEngine_Opus

CodeEagle avatar Jun 24 '19 00:06 CodeEagle

Yes, it's unsupported by default.

Note this format (OPUS) is used by whats app for their voice messages because of its low rate.

maybe this could help you in research

TheNasirKhan avatar Jun 26 '19 12:06 TheNasirKhan