Homebrew Homebrew sound and music?

3DSmax

New Member
OP
Newbie
Joined
Aug 2, 2016
Messages
4
Trophies
0
Age
44
XP
51
Country
United States
I see LPP-3DS is a library that supports sound, but all of the samples are in Lua. I have done a lot of digging and I haven't found any C/C++ libraries where I can write code in C/C++ to load .ogg files as sounds and music and play them in homebrew applications, unless there is a way to use LPP-3DS without doing all the code in Lua scripts?

Can anyone please offer suggestions on how to do this? Or if there are any functioning examples, that would be even more helpful, since I don't have a very keen understanding of sound.

Thank you!
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,488
Trophies
4
Location
Space
XP
14,201
Country
Norway
I see LPP-3DS is a library that supports sound, but all of the samples are in Lua. I have done a lot of digging and I haven't found any C/C++ libraries where I can write code in C/C++ to load .ogg files as sounds and music and play them in homebrew applications, unless there is a way to use LPP-3DS without doing all the code in Lua scripts?

Can anyone please offer suggestions on how to do this? Or if there are any functioning examples, that would be even more helpful, since I don't have a very keen understanding of sound.

Thank you!
You can use the sound code from the lpp-3ds source.
 

3DSmax

New Member
OP
Newbie
Joined
Aug 2, 2016
Messages
4
Trophies
0
Age
44
XP
51
Country
United States
Thank you for such a quick response! :) I have been looking into that and it is at least a little straightforward, so that is good. Please excuse me for being a n00b, but can you or anyone please offer input on this?:
Code:
test = Sound.openWav("/blood.wav", false)
I think this is utilizing this function:
Code:
static int lua_openwav(lua_State *L)
I'm not sure what is going on here? Two arguments are somehow being smashed into one argument? It looks like this may require modifying LPP-3DS to have C/C++ type names rather than ones related to Lua.

The sample I am referencing: https://github.com/Rinnegatamante/lpp-3ds/blob/master/samples/Multimedia/wav.lua
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: Good night