FrameDecoder.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * 09/26/08 throw exception on subbband alloc error: Christopher G. Jennings (cjennings@acm.org)
  3. * 11/19/04 1.0 moved to LGPL.
  4. * 12/12/99 Initial version. mdm@techie.com
  5. *-----------------------------------------------------------------------
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU Library General Public License as published
  8. * by 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 Library General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Library General Public
  17. * License along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. *----------------------------------------------------------------------
  20. */
  21. package javazoom.jl.decoder;
  22. /**
  23. * Implementations of FrameDecoder are responsible for decoding
  24. * an MPEG audio frame.
  25. *
  26. */
  27. //REVIEW: the interface currently is too thin. There should be
  28. // methods to specify the output buffer, the synthesis filters and
  29. // possibly other objects used by the decoder.
  30. public interface FrameDecoder
  31. {
  32. /**
  33. * Decodes one frame of MPEG audio.
  34. */
  35. public void decodeFrame() throws DecoderException;
  36. }