From 23cf4ad82fdfcc2002ec98ccc7588f9db7d0f523 Mon Sep 17 00:00:00 2001 From: Dominik Wenger Date: Mon, 8 Nov 2010 20:25:14 +0000 Subject: update the asap codec to version 2.1.2 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28535 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libasap/apokeysnd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/codecs/libasap/apokeysnd.c') diff --git a/apps/codecs/libasap/apokeysnd.c b/apps/codecs/libasap/apokeysnd.c index ead611be5f..811e2f9b4a 100644 --- a/apps/codecs/libasap/apokeysnd.c +++ b/apps/codecs/libasap/apokeysnd.c @@ -1,7 +1,7 @@ /* * apokeysnd.c - another POKEY sound emulator * - * Copyright (C) 2007-2009 Piotr Fusik + * Copyright (C) 2007-2010 Piotr Fusik * * This file is part of ASAP (Another Slight Atari Player), * see http://asap.sourceforge.net @@ -469,13 +469,14 @@ FUNC(void, PokeySound_StartFrame, (P(ASAP_State PTR, ast))) FUNC(void, PokeySound_EndFrame, (P(ASAP_State PTR, ast), P(int, current_cycle))) { + V(int, clk) = ASAP_MAIN_CLOCK(ast); end_frame(ast, ADDRESSOF ast _ base_pokey, current_cycle); if (ast _ extra_pokey_mask != 0) end_frame(ast, ADDRESSOF ast _ extra_pokey, current_cycle); ast _ sample_offset += current_cycle * ASAP_SAMPLE_RATE; ast _ sample_index = 0; - ast _ samples = TO_INT(ast _ sample_offset / ASAP_MAIN_CLOCK); - ast _ sample_offset %= ASAP_MAIN_CLOCK; + ast _ samples = TO_INT(ast _ sample_offset / clk); + ast _ sample_offset %= clk; } /* Fills buffer with samples from delta_buffer. */ -- cgit v1.2.3