packages.lisp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ;;; -*- Mode: Lisp; show-trailing-whitespace: t; Base: 10; indent-tabs: nil; Syntax: ANSI-Common-Lisp; Package: CL-USER; -*-
  2. ;;; Copyright (c) 2013, Mark VandenBrink. All rights reserved.
  3. (in-package #:cl-user)
  4. (defpackage #:utils
  5. (:export #:warn-user *break-on-warn-user* #:printable-array #:upto-null
  6. #:redirect #:memoize #:it #:*standard-optimize-settings*
  7. #:get-bitfield #:while #:aif #:awhen #:with-gensyms #:make-keyword
  8. #:dump-data #:timings)
  9. (:use #:common-lisp))
  10. (defpackage #:profile
  11. (:export #:on #:off #:reset #:report)
  12. (:use #:common-lisp))
  13. (defpackage #:iso-639-2
  14. (:export #:get-iso-639-2-language)
  15. (:use #:common-lisp :utils))
  16. (defpackage #:audio-streams
  17. (:export #:octets #:make-octets *get-audio-info* #:audio-stream-condition
  18. #:mp3-file-stream #:mp4-file-stream #:base-mem-stream #:flac-file-stream #:flac-tags
  19. #:id3-header #:audio-info #:mp4-atoms #:flac-headers
  20. #:parse-mp3-file #:parse-mp4-file #:parse-audio-file #:parse-flac-file #:flac-tags
  21. #:make-mem-stream #:make-file-stream #:stream-filename
  22. #:stream-read-u8 #:stream-read-u16 #:stream-read-u24 #:stream-read-u32 #:stream-read-u64 #:stream-read-u128 #:stream-read-octets
  23. #:stream-decode-iso-string #:stream-deocode-ucs-string #:stream-decode-ucs-be-string
  24. #:stream-decode-utf-8-string #:stream-decode-string #:stream-read-iso-string-with-len
  25. #:stream-read-ucs-string-with-len #:stream-read-ucs-be-string-with-len
  26. #:stream-read-utf-8-string-with-len #:stream-read-string-with-len
  27. #:stream-read-iso-string #:stream-read-ucs-string #:stream-read-ucs-be-string
  28. #:stream-read-utf-8-string #:stream-read-string
  29. #:stream-read-string #:stream-read-sequence #:stream-size
  30. #:stream-seek #:stream-here #:stream-close)
  31. (:use #:common-lisp #:utils))
  32. (defpackage #:flac-frame
  33. (:export #:flac-frame-condition #:flac-header #:vpprint #:is-valid-flac-file #:find-flac-frames
  34. #:get-flac-audio-info #:flac-get-tag #:get-flac-audio-info #:flac-show-raw-tag)
  35. (:use #:common-lisp #:utils #:audio-streams))
  36. (defpackage #:mp4-atom
  37. (:export #:mp4-atom #:map-mp4-atom #:find-mp4-atoms #:traverse #:mp4-atom-condition
  38. #:atom-file-position #:atom-children #:atom-size #:atom-of-interest #:atom-decoded
  39. #:atom-type #:vpprint #:*tag-path* #:tag-get-value #:mp4-atom-condition
  40. #:mp4-show-raw-tag-atoms #:get-mp4-audio-info #:is-valid-m4-file
  41. #:+itunes-album+
  42. #:+itunes-album-artist+
  43. #:+itunes-artist+
  44. #:+itunes-comment+
  45. #:+itunes-composer+
  46. #:+itunes-copyright+
  47. #:+itunes-year+
  48. #:+itunes-encoder+
  49. #:+itunes-groups+
  50. #:+itunes-lyrics+
  51. #:+itunes-purchased-date+
  52. #:+itunes-title+
  53. #:+itunes-tool+
  54. #:+itunes-writer+
  55. #:+itunes-compilation+
  56. #:+itunes-cover-art+
  57. #:+itunes-disk+
  58. #:+itunes-genre+
  59. #:+itunes-genre-x+
  60. #:+itunes-tempo+
  61. #:+itunes-track+
  62. #:+itunes-track-n+)
  63. (:use #:common-lisp #:audio-streams #:utils))
  64. (defpackage #:id3-frame
  65. (:export #:id3-frame #:find-id3-frames #:id3-frame-condition #:vpprint #:header #:get-frame-info #:is-valid-mp3-file
  66. #:encoding #:lang #:desc #:val #:comment #:artist #:album #:year #:comment #:year
  67. #:map-id3-frames #:frames #:year #:title #:genre #:id #:v21-tag-header #:info #:version)
  68. (:use #:common-lisp #:audio-streams #:utils #:iso-639-2))
  69. ;; (defpackage #:mp3-tag
  70. ;; (:export #:show-tags #:get-id3v1-genre)
  71. ;; (:use #:common-lisp #:audio-streams #:id3-frame #:utils))
  72. ;; (defpackage #:mp4-tag
  73. ;; (:export #:show-tags #:album #:album-artist #:artist #:comment #:composer #:copyright #:created
  74. ;; #:encoder #:groups #:lyrics #:purd #:title #:tool #:writer)
  75. ;; (:use #:common-lisp #:audio-streams #:utils))
  76. (defpackage #:abstract-tag
  77. (:export #:show-tags #:get-id3v1-genre
  78. #:album #:album-artist #:artist #:comment #:composer #:copyright #:created
  79. #:encoder #:groups #:lyrics #:purd #:title #:tool #:writer)
  80. (:use #:common-lisp #:audio-streams #:id3-frame #:utils))
  81. (defpackage #:logging
  82. (:export #:with-logging)
  83. (:use #:common-lisp #:utils))
  84. (defpackage #:mpeg
  85. (:export #:get-mpeg-audio-info #:vpprint)
  86. (:use #:common-lisp #:audio-streams #:utils))