? Free WAV Player (version 4) ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password
Creep into the Halloween / Horror Programming Contest (Deadline Extended)

Free WAV Player (version 4)

Submitted
Updated
Author
12Me21
Public Key
73XN3XKS
Min. Compat.
All
Version
4.something
Size
2.0021 MB
Rating
4 votes
Description Even though it should be obsolete thanks to PCMSTREAM, It seems that few people are buying the DLC, so I decided to update the WAV BGM player again. Instructions

Playing WAV Files

Put LOAD "PRG1:WAVBGM.LIB",0:USE 1 at the start of your code to load the WAV player library. Then useWAVBGM file$,rate,loop,autoplayTo play a WAV. file$ is the WAV file "DAT:EXAMPLE.WAV" rate is the sample rate: 3=8180, 4=16360, 5=32720 loop sets whether the BGM will loop. 1=loop, 0=play once autoplay sets whether it will play immediately after the command. 1=play, 0=BGMSET 128 only.

Sending WAV Files

To transfer WAV files, I suggest WAV2SBWAV by Perska. https://smilebasicsource.com/page?pid=339 WAIT!!! Don't leave yet! When preparing your audio file, you can use the following sample rates/lengths: sample rate --- maximum length 8180Hz --- ~60 seconds (524288 samples) 16360Hz --- ~30 seconds (524288 samples) 32720Hz --- ~15 seconds (524288 samples) If you want your audio file to loop, you MUST have an exact multiple of 16384 samples! (you might need to change the speed of the song a little bit, in order to make it fit) MAKE SURE YOU CHECK "ignore sample count" in WAV2SBWAV
Notes I still recommend buying it though.
Categories
Keywords
  • Free
  • WAV
  • BGM
  • music
  • sound
6 Comment(s) mia mia Night Person I like the quiet night and sleep late. Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies Oh, is this a finished version of the work in progress? I was considering commenting on how it says free and asking why, but I guess if this is usually not easy to do(?), then it's impressive that it's freely done without DLC. Anyway, I just feel like commenting that changing the rate is creepy or funny. It depends on how you change it, though. why is the demo song so sped up? I always here it at rate 2 maybe if you know what I mean =) 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS If anyone needs help converting WAV files, just ask. AnswerXOX AnswerXOX Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Great Page Hidden Achievements Pokemon Is Awesome! I love Pokemon! Express Yourself youtu.be/f9nu2LS-ReQ Tutorial if anybody needs ;) 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS http://12Me21.github.io/money JustGreat JustGreat First Month Joined in the very first month of SmileBASIC Source Website Avatar Taboo I didn't change my avatar for 180 days Website Night Person I like the quiet night and sleep late. Express Yourself I've stuck things through the hinges to clean that space before. How did this idea not occur to me?! AnswerXOX AnswerXOX Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Great Page Hidden Achievements Pokemon Is Awesome! I love Pokemon! Express Yourself YES, NO MANEYZ 2 BI UZED