View unanswered posts | View active topics It is currently Sun Jan 20, 2019 5:43 am



Reply to topic  [ 4 posts ] 
 Wii PCM 16 bit samples ASNDLIB 
Author Message

Joined: Sun Jul 29, 2018 10:56 am
Posts: 2
I am using asndlib and it will play 8 bit mono pcm samples just fine. 16 bit mono pcm samples are just static. Here is a link to the source code if anyone can please help.

https://github.com/DCurrent/openbor/blo ... sblaster.c


Wed Aug 22, 2018 1:47 pm
Profile
Site Admin

Joined: Tue Aug 09, 2005 3:21 am
Posts: 1316
Location: UK
If it's really 16bit mono then you probably want VOICE_MONO_16BIT_LE rather than VOICE_STEREO_16BIT. Suspect it sounds like static because you're trying to play little endian samples in big endian mode.

_________________
Help keep devkitPro toolchains free, Donate today

devkitPro IRC support
Personal Blog


Sat Sep 15, 2018 7:37 pm
Profile ICQ WWW

Joined: Sun Jul 29, 2018 10:56 am
Posts: 2
That did not work I tried them all. The audio documentation states the output sample will always be converted to 16 bit stereo anyway.

Is there anyway to check the input sample and if it is 16 bit mono pcm convert it to 8 bit mono pcm ? I did not write this code I just hope I can edit it to fix this little bug.

Also the engine can play all formats of audio in mp3 and ogg format it also plays 8 bit mono pcm samples just fine the only issue is only with 16 mono samples.


Sat Jan 19, 2019 6:30 pm
Profile
Site Admin

Joined: Tue Aug 09, 2005 3:21 am
Posts: 1316
Location: UK
Is there any chance you could put together a small test case for us to look at? Just the code you're using to play a sample & a couple of the samples that are failing - might be easier to figure out what's going wrong.

_________________
Help keep devkitPro toolchains free, Donate today

devkitPro IRC support
Personal Blog


Sat Jan 19, 2019 7:19 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at SourceForge.net. Fast, secure and Free Open Source software downloads