home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Sound / DelfMPEG / src / MP3.a56 < prev    next >
Text File  |  1999-10-27  |  2KB  |  91 lines

  1. ;*****************************************************************************
  2. ;
  3. ;    DelfMPEG - MPEG audio player for Delfina DSP
  4. ;    Copyright (C) 1999  Michael Henke
  5. ;
  6. ;    This program is free software; you can redistribute it and/or modify
  7. ;    it under the terms of the GNU General Public License as published by
  8. ;    the Free Software Foundation; either version 2 of the License, or
  9. ;    (at your option) any later version.
  10. ;
  11. ;    This program is distributed in the hope that it will be useful,
  12. ;    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. ;    GNU General Public License for more details.
  15. ;
  16. ;    You should have received a copy of the GNU General Public License
  17. ;    along with this program; if not, write to the Free Software
  18. ;    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. ;
  20. ;*****************************************************************************
  21.  
  22.  
  23.  
  24.  
  25. ;Delfina object DSP56K_MP3
  26. ;memory map (for Amiga access)
  27. ;
  28. ; prog
  29. ;   0 .. init (x1=/, x0=/, y1=/, y0=/)
  30. ;  +2 .. decode MP3 frame (x1=mono, x0=outbuf, y1=/, y0=/)
  31. ;
  32. ; xdata
  33. ;   /
  34. ;
  35. ; ydata
  36. ;   0 .. inbuf (Amiga write)
  37.  
  38.  
  39.  
  40.  
  41. DELFINA_SAMPLES    equ    1152
  42.  
  43.  
  44.     include 'delfequ.inc'
  45.  
  46.     org    p:
  47.  
  48. ;->prog
  49.     jmp    init
  50.  
  51. ;->prog+2
  52.  
  53. ;*****************************************************************
  54. ;
  55. ; **** MPEG layer III decoder ****
  56. ;
  57. ; parameters
  58. ;  x1 - mono          (mono: not_zero, stereo: zero)
  59. ;  x0 - output buffer (mono: x: only,  stereo: x: left, y: right)
  60. ;  y1 - /
  61. ;  y0 - /
  62. ;
  63. ; Delfina DSP coding by Smack/Infect!
  64. ;
  65. ;*****************************************************************
  66.  
  67. ;exit
  68.     move    #0,x0
  69.     rts
  70.  
  71.  
  72.  
  73.  
  74.  
  75. ;*** initialize ************************
  76. init
  77.     move    #0,x0
  78.     rts
  79.  
  80.  
  81.  
  82. ;    org    x:
  83.  
  84.  
  85.  
  86.  
  87.     org    y:
  88. ;->ydata
  89. inbuf    ds    600    ;MPG_MAXFRAMESIZE=1792
  90.  
  91.