• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Site › Dolphin Patches (Archive) v
« Previous 1 2 3 4 5 6 7 Next »

[PATCH] Audio dumping
View New Posts | View Today's Posts

Pages (3): 1 2 3 Next »
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[PATCH] Audio dumping
02-04-2011, 02:54 PM (This post was last modified: 02-07-2011, 05:40 AM by sgrunt.)
#1
sgrunt Offline
Junior Member
**
Posts: 9
Threads: 3
Joined: Feb 2011
This diff against r7058 places a checkbox in the config to enable the previously dormant audio dumping code, with a couple of adjustments to get it to dump audio more or less correctly (there's a .3125 second, i.e. 10000 sample at 32KHz, lag between audio and video which I haven't been able to isolate yet, but one can work around this).

I intend for this to assist in getting high quality multimedia dumps for later high quality encoding - assuming you're using a lossless video codec you can now capture all of the audio and video data from a session. hopefully this will eventually take the form of being able to dump one all-in-one stream as opposed to doing the audio and video dumping separately.

EDIT: Adjusted slightly from initial post to use the configuration sample rate in the case that you're using HLE audio. LLE samples always seem to reach the output at 32KHz, so if you're wondering why that's there, that's why.

EDIT: Here's a new version of the patch against r7093 to account for the minor change to AudioCommon.cpp in r7082. Nothing else has changed.


Attached Files
.patch   dolphin-r7058-dump-audio.patch (Size: 13.4 KB / Downloads: 394)
.patch   dolphin-r7093-dump-audio.patch (Size: 8.85 KB / Downloads: 370)
Website Find
02-04-2011, 03:00 PM
#2
skid Offline
skidau / skid_au
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,006
Threads: 8
Joined: Aug 2009
Nice work, but why 32khz? Also, now that plugins have been merged we should look into how to incorporate audio dumping into the AVI creation.
Find
02-04-2011, 03:43 PM
#3
sgrunt Offline
Junior Member
**
Posts: 9
Threads: 3
Joined: Feb 2011
I adjusted the patch to pull the sample rate from the configuration (in most cases; LLE always seems to output at 32KHz).
Website Find
02-08-2011, 05:14 AM
#4
thegamefreak0134 Offline
Exit Mouse
***
Posts: 165
Threads: 14
Joined: Mar 2009
Where do the dumped files end up? I can't figure out where the output of the function is. (Got it to build just fine, the checkbox in the Audio tab is there and checkable, but I can't find the dump.)
The only good zombie is a live zombie.
Website Find
02-08-2011, 07:02 AM
#5
sgrunt Offline
Junior Member
**
Posts: 9
Threads: 3
Joined: Feb 2011
Look in User/Dump/Audio.
Website Find
02-08-2011, 12:44 PM
#6
wojcikiewicz Offline
Junior Member
**
Posts: 26
Threads: 2
Joined: Oct 2009
I know I already asked, but How I can add a patch?

I must know step by step, I didn't could find any tutorial Sad

I'm a audio and sprite ripper from a pretty long time, and I would like to use that...

Sgrunt, could you help me?
I will get the revision soon
Find
02-08-2011, 06:39 PM
#7
Mylek Offline
Junior Member
**
Posts: 36
Threads: 2
Joined: Sep 2009
I moved your dump code from the backends into the mixer which should make it work across all backends. Also added logic so HLE audio renders at 30fps when capturing to prevent recorded samples getting chopped off if fps drops below 30.

I think the delay you are referring to is the 8k buffer in the mixer that lle/dma audio passes through. With the code in the mixer it would be possible to get around that latency if you really wanted to.


Attached Files
.patch   dolphin-r7109-dump-audio_mixer.patch (Size: 10.73 KB / Downloads: 271)
Find
02-08-2011, 06:46 PM
#8
thegamefreak0134 Offline
Exit Mouse
***
Posts: 165
Threads: 14
Joined: Mar 2009
I discovered with Panic Alerts that it wasn't opening the file, so I created the Audio directory. Now, no matter what combination of settings I try, I end up with an unplayable .wav file that is 44 bytes long. With the IL recompliler I get a slew of write offsets right at the beginning, but both compilers cause empty dumps. I've not found a configuration of DSP settings or otherwise that causes it to produce a dump.

It seems like it's almost working, and I may just be missing something obvious somewhere.
The only good zombie is a live zombie.
Website Find
02-08-2011, 08:51 PM (This post was last modified: 02-08-2011, 09:13 PM by Mylek.)
#9
Mylek Offline
Junior Member
**
Posts: 36
Threads: 2
Joined: Sep 2009
The 7093 version of the patch I think only works with linux audio backends but the mixer version I posted above should work for you.
Find
02-09-2011, 12:15 AM
#10
inteGReddy Offline
Somewhat Useful Senior Member
****
Posts: 421
Threads: 11
Joined: Jun 2010
more sound work, yay!
[Image: 53r3k4.png]
Find
« Next Oldest | Next Newest »
Pages (3): 1 2 3 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode