Jeremy-D-Miller / wiiflow

Automatically exported from code.google.com/p/wiiflow
0 stars 0 forks source link

mp3 background music #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have added simple but stable mp3 music playback to my local copy.

The background music works as it always has.
Pick a random file from the music directory and loop forever.

It now just accepts MP3s and OGGs.

While I am a working Applications Engineer, i am new to wii programing(not
that its all that different) and this seemed like an easy place to start.

I was hoping someone could review it, and add it to the project if everyone
likes it.

changes to menu.hpp
added bool m_music_ismp3;
added u32 m_music_fileSize;
added void _loopMusic(void);

changes to menu.cpp
added include (mp3Player.h)
modified _StartMusic();
modified _ListOgg();
modified _MainCommonLoop();
modified _StopMusic();
added _loopMusic();

Updated Makefile to include -lmad

I have attached the files in question

there is also some new button declarations in menu.hpp, these can be
ignored as they are for a separate project. 
adding buttons to main menu for HBC, Triiforce, Mii channel, Internet
Channel, and Shop Channel.

I know this can be accomplished with forwarder iso, more of a learning
experience. got them all working except for loading triiforce from the USB/SD  

Thanks in advance for the code review, and in general for keeping the
awesome program alive.

Head

Original issue reported on code.google.com by wels...@gmail.com on 9 Dec 2009 at 9:44

GoogleCodeExporter commented 9 years ago
forgot to mention the changes to the volume controls

changes to menu_configsnd.cpp
added #include (mp3player.h)
added appropriate calls to MP3Player_Volume

file attached

Head

Original comment by wels...@gmail.com on 9 Dec 2009 at 10:22

GoogleCodeExporter commented 9 years ago
Thank you, this has been added to my working copy. Next time, please create a 
diff
file. You can make one with either svn diff, or with TortoiseSVN.

Original comment by e.bovend...@gmail.com on 17 Mar 2010 at 2:47