Homebrew Homebrew sound and music?

3DSmax

New Member
OP
Newbie
Joined
Aug 2, 2016
Messages
4
Trophies
0
Age
45
XP
61
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,992
Trophies
5
Location
Space
XP
15,107
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
45
XP
61
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
  • SylverReZ @ SylverReZ:
    How is everybody getting Covid? I thought we had escaped that era by now.
  • Veho @ Veho:
    Nah, COVID is here to stay.
    +1
  • Sicklyboy @ Sicklyboy:
    I still have not, to my knowledge, ever caught covid 😁 and if I have, then I was completely asymptomatic
  • Veho @ Veho:
    I did get it at one time but it was mild.
  • Veho @ Veho:
    OR SHOULD I SAY "MID"
    +2
  • Skelletonike @ Skelletonike:
    I've had Covid twice, or thrice.
  • Skelletonike @ Skelletonike:
    Not sure if the last one was Covid or bird flu
  • BigOnYa @ BigOnYa:
    Yea gotta avoid making out with birds nowdays.
  • Veho @ Veho:
    Can't eat bats, can't eat birds...
    +1
  • Skelletonike @ Skelletonike:
    Well, there's rats
    +1
  • Veho @ Veho:
    Black plague.
    +1
  • Skelletonike @ Skelletonike:
    we need another black plague
    +1
  • Skelletonike @ Skelletonike:
    would solve many issues.
  • Veho @ Veho:
    Yeah, like too many kids and poor people.
    +1
  • Skelletonike @ Skelletonike:
    Well, it's a start, lol.
  • Skelletonike @ Skelletonike:
    People would save on child support. :D
  • Jayro @ Jayro:
    I'm surprised India hasn't had any crazy outbreaks with how overpopulated they are over there.
    +1
  • Veho @ Veho:
    Would we even know?
    +1
  • Skelletonike @ Skelletonike:
    They've been drying shit out in the open in my country.
  • Veho @ Veho:
    How horrible. In my country we dry shit in private.
  • Veho @ Veho:
    Skel, what the hell are you talking about?
  • Skelletonike @ Skelletonike:
    literal shit that's been put drying in the road >.>
  • Skelletonike @ Skelletonike:
    no idea what it's for
    Skelletonike @ Skelletonike: no idea what it's for