1
0

M3UWriter.h 471 B

12345678910111213141516171819202122232425
  1. #ifndef NULLSOFT_M3UWRITERH
  2. #define NULLSOFT_M3UWRITERH
  3. #include <stdio.h>
  4. #include <windows.h>
  5. class M3UWriter
  6. {
  7. public:
  8. M3UWriter();
  9. virtual ~M3UWriter();
  10. int Open(char *filename, int extendedMode);
  11. int Open( FILE *_fp, char *filename, int extendedMode );
  12. void SetFilename( char *filename );
  13. void SetExtended( char *filename, char *title, int length );
  14. void Close();
  15. private:
  16. char basePath[MAX_PATH];
  17. int extended = 0;
  18. FILE *fp = NULL;
  19. };
  20. #endif