Heyya fellas!
I've been having a lot of fun making small programs for my 3DS. But one thing I've run into a problem with is playing audio files. I have a decoder which I borrowed from ctrmus. But ctrmus relies on some additional libraries which I'd rather not have to use if possible for the sake of portability.
The other code I've been looking at borrowing from is 3ds-vgmstream. Unfortunately, that is written in C++. But it uses a library called NDSP, which I've been reading through the documentation for and it seems like the sort of library I'm after, but I can't seem to import it into my C code and I can't see any reason why I shouldn't be able to looking through the documentation.
Of course, I could just write my program in C++, which I might. But I much prefer functional programming to OO programming. I guess I can do c++ functionally, but I'm imagining some OO fans would have a heart attack if they saw such a thing . Also, all my other programs are written in C. If I want to combine then in to one super-epic-mega program of doom, then I'd need to port them all over to C++ and that's effort.
If any of you guys have messed around with any homebrew that plays audio files, then please show me what you got!
I've been having a lot of fun making small programs for my 3DS. But one thing I've run into a problem with is playing audio files. I have a decoder which I borrowed from ctrmus. But ctrmus relies on some additional libraries which I'd rather not have to use if possible for the sake of portability.
The other code I've been looking at borrowing from is 3ds-vgmstream. Unfortunately, that is written in C++. But it uses a library called NDSP, which I've been reading through the documentation for and it seems like the sort of library I'm after, but I can't seem to import it into my C code and I can't see any reason why I shouldn't be able to looking through the documentation.
Of course, I could just write my program in C++, which I might. But I much prefer functional programming to OO programming. I guess I can do c++ functionally, but I'm imagining some OO fans would have a heart attack if they saw such a thing . Also, all my other programs are written in C. If I want to combine then in to one super-epic-mega program of doom, then I'd need to port them all over to C++ and that's effort.
If any of you guys have messed around with any homebrew that plays audio files, then please show me what you got!