ogg_vcomment.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. ** Copyright (C) 2008-2018 Erik de Castro Lopo <[email protected]>
  3. ** Copyright (C) 2018 Arthur Taylor <[email protected]>
  4. **
  5. ** This program is free software ; you can redistribute it and/or modify
  6. ** it under the terms of the GNU Lesser General Public License as published by
  7. ** the Free Software Foundation ; either version 2.1 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY ; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU Lesser General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU Lesser General Public License
  16. ** along with this program ; if not, write to the Free Software
  17. ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. */
  19. #ifndef SF_SRC_OGG_VCOMMENT_H
  20. #define SF_SRC_OGG_VCOMMENT_H
  21. /*
  22. ** Voriscomment identifier. Some Ogg stream embedding schemes require it.
  23. */
  24. typedef struct
  25. { const char *ident ;
  26. int length ;
  27. } vorbiscomment_ident ;
  28. /*
  29. ** Read all vorbiscomment tags from *packet. Tags which match ones used
  30. ** by libsndfile strings are loaded into *psf. Ogg streams which require an
  31. ** identifier for the tags packet should pass it in *ident.
  32. */
  33. int vorbiscomment_read_tags (SF_PRIVATE *psf, ogg_packet *packet, vorbiscomment_ident *ident) ;
  34. /*
  35. ** Write metadata strings stored in *psf to *packet. The packet is optionally
  36. ** prefixed with *ident. The always-present vendor field should be the library
  37. ** used for encoding the audio data.
  38. */
  39. int vorbiscomment_write_tags (SF_PRIVATE *psf, ogg_packet *packet, vorbiscomment_ident *ident, const char *vendor, int targetsize) ;
  40. #endif /* SF_SRC_OGG_VCOMMENT_H */