home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 6
/
AACD06.ISO
/
AACD
/
Sound
/
DelfMPEG
/
src
/
MP3.a56
< prev
next >
Wrap
Text File
|
1999-10-27
|
2KB
|
91 lines
;*****************************************************************************
;
; DelfMPEG - MPEG audio player for Delfina DSP
; Copyright (C) 1999 Michael Henke
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this program; if not, write to the Free Software
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
;
;*****************************************************************************
;Delfina object DSP56K_MP3
;memory map (for Amiga access)
;
; prog
; 0 .. init (x1=/, x0=/, y1=/, y0=/)
; +2 .. decode MP3 frame (x1=mono, x0=outbuf, y1=/, y0=/)
;
; xdata
; /
;
; ydata
; 0 .. inbuf (Amiga write)
DELFINA_SAMPLES equ 1152
include 'delfequ.inc'
org p:
;->prog
jmp init
;->prog+2
;*****************************************************************
;
; **** MPEG layer III decoder ****
;
; parameters
; x1 - mono (mono: not_zero, stereo: zero)
; x0 - output buffer (mono: x: only, stereo: x: left, y: right)
; y1 - /
; y0 - /
;
; Delfina DSP coding by Smack/Infect!
;
;*****************************************************************
;exit
move #0,x0
rts
;*** initialize ************************
init
move #0,x0
rts
; org x:
org y:
;->ydata
inbuf ds 600 ;MPG_MAXFRAMESIZE=1792