Dolphin, the GameCube and Wii emulator - Forums
Programming Discussion Thread - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Offtopic (https://forums.dolphin-emu.org/Forum-offtopic)
+--- Forum: Delfino Plaza (https://forums.dolphin-emu.org/Forum-delfino-plaza)
+--- Thread: Programming Discussion Thread (/Thread-programming-discussion-thread)



RE: Programming Discussion Thread - Shonumi - 07-27-2013

(07-27-2013, 01:48 AM)neobrain Wrote: Fyi, if you're looking for something simpler to work with, libao is pretty easy to use if you just want raw sound output ala "output sound at frequency X at volume Y".

Thanks, I see it's cross-platform as well. The thing is, I want to keep dependencies to a minimum. I know any Linux distro worth its salt has libao installed by default (or easily installed if not) but I really want to stick to using SDL or SDL related libraries (SDL_image, SDL_ttf, SDL_net). SDL_mixer has the same ability to just send raw data and get sound output, but that's even less documented than SDL's native audio functions Sad

The main hurdle for me is that I don't know how to actually generate said raw data. I more or less understand how SDL's native audio functions handle playing sound, but I don't know how to make a saw or square wave. And yes, I know what the waveforms are supposed to look like and how they differ in function, I just don't know the exact numbers I'm supposed to be feeding in. Like I said, I have a working example that uses SDL's native audio functions, I just haven't studied it thoroughly.


RE: Programming Discussion Thread - neobrain - 07-27-2013

(07-27-2013, 02:31 AM)Shonumi Wrote:
(07-27-2013, 01:48 AM)neobrain Wrote: Fyi, if you're looking for something simpler to work with, libao is pretty easy to use if you just want raw sound output ala "output sound at frequency X at volume Y".

Thanks, I see it's cross-platform as well. The thing is, I want to keep dependencies to a minimum. I know any Linux distro worth its salt has libao installed by default (or easily installed if not) but I really want to stick to using SDL or SDL related libraries (SDL_image, SDL_ttf, SDL_net). SDL_mixer has the same ability to just send raw data and get sound output, but that's even less documented than SDL's native audio functions Sad

The main hurdle for me is that I don't know how to actually generate said raw data. I more or less understand how SDL's native audio functions handle playing sound, but I don't know how to make a saw or square wave. And yes, I know what the waveforms are supposed to look like and how they differ in function, I just don't know the exact numbers I'm supposed to be feeding in. Like I said, I have a working example that uses SDL's native audio functions, I just haven't studied it thoroughly.
I see. Good luck, then Wink


RE: Programming Discussion Thread - Shonumi - 07-27-2013

(07-27-2013, 03:05 AM)neobrain Wrote: I see. Good luck, then Wink

Thanks Smile Good luck to you as well working on your SW rendering on PPSSPP. You know, part of the reason I'm doing all of this right now stems from seeing Dolphin devs like you doing amazing things. Guess playing emulators wasn't enough, and you guys inspired me to dig deeper. I'm not done digging yet of course. Can't wait to see how both of us come along with our respective projects.

Well, it's done: https://code.google.com/p/gb-enhanced/ Now, you can laugh at some of my code design choices, but the better response is to tell me the better way of doing something. This is a learning experience as well. I'm a writer who just programs as a hobby after all :p

Not going to get much work done in the coming days. Making emulators is cool and all, but I still have to play with them. I'm going to be setting up my ODROID all of this weekend.


RE: Programming Discussion Thread - neobrain - 08-05-2013

I figured this thread might be more fitting for PPSSPP softgpu updates than the random thread was.
(08-04-2013, 09:58 PM)Garteal Wrote: How's it going with the software renderer?
You haven't updated us anymore. Sad
I've mostly been doing boring work on that side. Rebasing on current master, getting my math utility code merged into master, discussing over some pull requests. The thing is getting very close to GLES in terms of compatibility (and even outperforms it sometimes, which proves how ridiculously easy it is to achieve full compatibility with a software renderer), so there are no major new things to talk about. When I get to work on softgpu again, I'll be getting it ready for merging to master and then likely won't touch it for a few weeks because I'll start with my bachelor thesis in September.



@ Shonumi: I just noticed your new post. Nice to see I'm inspiring people to do other awesome stuff Wink


RE: Programming Discussion Thread - Garteal - 08-05-2013

I see. Thanks for the summary.

el neobrain Wrote:When I get to work on softgpu again, I'll be getting it ready for merging to master and then likely won't touch it for a few weeks because I'll start with my bachelor thesis in September.
You aren't working on it now? How far is the progress overall?

Right now there are several issues with the current renderer causing missing textures, wrong transformations, etc.
Unfortunately I have no idea where to start 'fixing' it, so I'm curious as to how complete yours is.

Good luck with that thesis.


RE: Programming Discussion Thread - neobrain - 08-05-2013

Basically, the current state is that softgpu will either completely fail to render anything properly or that it will render the game close to perfect, which I'd say is a sign of a solid implementation of most features but there are some critical bugs that I haven't debugged, yet. It's obviously painfully slow still, and I likely won't be the one who optimizes it to fullspeed.

The GLES backend has a number of ridiculous limitations which can't be solved at all or only with a huge effort and performance penalty. With softgpu, we basically get free fixes for any bugs that arise from this.


RE: Programming Discussion Thread - NaturalViolence - 08-06-2013

neobrain Wrote:I'll start with my bachelor thesis in September

What crazy topic are they having you write about?


RE: Programming Discussion Thread - neobrain - 08-06-2013

(08-06-2013, 06:15 AM)NaturalViolence Wrote:
neobrain Wrote:I'll start with my bachelor thesis in September

What crazy topic are they having you write about?
I don't have any specific title to mention yet, but it boils down to comparing the properties of spin networks in loop quantum gravity with those of tetrahedra.


RE: Programming Discussion Thread - werewolfyman - 08-06-2013

(08-06-2013, 06:37 AM)neobrain Wrote:
(08-06-2013, 06:15 AM)NaturalViolence Wrote:
neobrain Wrote:I'll start with my bachelor thesis in September

What crazy topic are they having you write about?
I don't have any specific title to mention yet, but it boils down to comparing the properties of spin networks in loop quantum gravity with those of tetrahedra.
When I read that, I think:
[Image: I%20have%20no%20idea.jpg]


RE: Programming Discussion Thread - NaturalViolence - 08-06-2013

neobrain Wrote:but it boils down to comparing the properties of spin networks in loop quantum gravity with those of tetrahedra

.......

And this is a BACHELOR'S program!?!? You have fun with that.