diago icon indicating copy to clipboard operation
diago copied to clipboard

How to set playback wav settings (Add resampling support)

Open shanehughes1990 opened this issue 1 year ago • 3 comments

For the inDialog.PlaybackCreate().Play (audio/wav), We have a bunch of existing prompts I want to use, I'm having a hard time finding where the settings for that player are the error on pb.Play wav file bitdepth=8 does not match expected=16, I'm poking around to see if I can find any relative setting that I'm able to change.

shanehughes1990 avatar Nov 17 '24 13:11 shanehughes1990

Hi @shanehughes1990 . If you are getting this error than yes, only 16bit is supported. Of course we can speak more about adding support for resampling but it will be some effort and time. Resampling can be bit and sample rate.

As for settings there is none, playback reads your wav file and if it can encode it will play it.

emiago avatar Nov 17 '24 21:11 emiago

You open to PR's? I can have a look at it myself as well

shanehughes1990 avatar Nov 17 '24 22:11 shanehughes1990

Hi @shanehughes1990, yes, but I suggest for now to collaborate to share knowledge and prevent conflicts. Not all code I moved public. I have already used resampling from some other libs, so we can see.

Can you DM on mail, to setup some chat session.

emiago avatar Nov 18 '24 09:11 emiago