Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II Emulation » recording speaker timings
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
recording speaker timings [message #394369] Fri, 08 May 2020 11:50 Go to next message
Vince Weaver is currently offline  Vince Weaver
Messages: 136
Registered: April 2013
Karma: 0
Senior Member
Hello

I was working on replicating some sound effects from some games.

With AppleWin I can do this by putting a debug memory trap on $C030
and noting the elapsed cycle count between accesses. This is slow
to do manually though.

Do any emulators automate this? Where you could write out the speaker
access patterns, possibly so you could run the results through a player?

Vince
Re: recording speaker timings [message #394371 is a reply to message #394369] Fri, 08 May 2020 12:53 Go to previous messageGo to next message
David Schmidt is currently offline  David Schmidt
Messages: 993
Registered: October 2012
Karma: 0
Senior Member
On 5/8/20 11:50 AM, vince@pianoman.cluster.toy wrote:
> I was working on replicating some sound effects from some games.

Thinking about solving the problem differently - what about recording
the audio coming from your PC while running the emulator? i.e.

https://www.howtogeek.com/217348/how-to-record-the-sound-com ing-from-your-pc-even-without-stereo-mix/
Re: recording speaker timings [message #394384 is a reply to message #394369] Fri, 08 May 2020 19:57 Go to previous messageGo to next message
sicklittlemonkey is currently offline  sicklittlemonkey
Messages: 570
Registered: October 2012
Karma: 0
Senior Member
On Saturday, 9 May 2020 01:50:09 UTC+10, vi...@pianoman.cluster.toy wrote:
> With AppleWin I can do this by putting a debug memory trap on $C030
> and noting the elapsed cycle count between accesses. This is slow
> to do manually though.

It's a shame the cycles isn't logged in a trace file (type help tf).

I would log an issue asking for this. Then you can grep it for C030.

Cheers,
Nick.
Re: recording speaker timings [message #394398 is a reply to message #394384] Sat, 09 May 2020 09:28 Go to previous messageGo to next message
TomCh is currently offline  TomCh
Messages: 242
Registered: November 2012
Karma: 0
Senior Member
On Saturday, 9 May 2020 00:57:17 UTC+1, Nick Westgate wrote:
> On Saturday, 9 May 2020 01:50:09 UTC+10, vi...@pianoman.cluster.toy wrote:
>> With AppleWin I can do this by putting a debug memory trap on $C030
>> and noting the elapsed cycle count between accesses. This is slow
>> to do manually though.
>
> It's a shame the cycles isn't logged in a trace file (type help tf).
>
> I would log an issue asking for this. Then you can grep it for C030.
>
> Cheers,
> Nick.

I agree - the abs cycle count should be traced-out by the 'tf' (trace-file) cmd.

Taking this 'tf' cmd a bit further, it could be extended to only trace-out an opcode when a breakpoint/watchpoint is hit. Similar to Visual Studio's Tracepoint feature (but without the conditional support).

So in this mode, the "hit" wouldn't stop execution, but it would just emit a trace line for this opcode.

You could use this to create just a trace of $C030 accesses, or $C0En (for Disk II) or $C4nn (eg, for Mockingboard).

I guess you'd need a special "end tf" breakpoint too, or perhaps each breakpoint/watchpoint could have an extra attribute saying whether it behaves as a normal "break execution and enter debugger" or as a Tracepoint.

I'll have a think about the best way to add this, but personally I can see a use for this.

Tom
Re: recording speaker timings [message #394404 is a reply to message #394398] Sat, 09 May 2020 13:57 Go to previous message
Michael AppleWin Debu is currently offline  Michael AppleWin Debu
Messages: 1262
Registered: March 2013
Karma: 0
Senior Member
That would be a great addition Tom!

Michael
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: GSplus keyboard layout
Next Topic: Stupid idea: interfacing to a modern chess engine
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Apr 16 07:38:11 EDT 2024

Total time taken to generate the page: 0.12369 seconds