diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-10-22 23:37:05 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-10-22 23:37:05 +0900 |
commit | acb405ba36ec82511525f4f9e2a0775e2d85308e (patch) | |
tree | 6825ce49a631783b035b3613fa295d742e3254a2 /common/fmplayer_file.h | |
parent | abba98ed83f59263c4b952d61ce9892f9270ee67 (diff) |
Implemented filename and PCM filename display
Diffstat (limited to 'common/fmplayer_file.h')
-rw-r--r-- | common/fmplayer_file.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/common/fmplayer_file.h b/common/fmplayer_file.h index 143c349..610a401 100644 --- a/common/fmplayer_file.h +++ b/common/fmplayer_file.h @@ -30,11 +30,15 @@ struct fmplayer_file { struct driver_fmp fmp; } driver; bool pmd_ppc_err; - bool pmd_ppz_err; bool fmp_pvi_err; bool fmp_ppz_err; void *buf; void *ppzbuf[2]; + // for display with FMDSP + // might be NULL + // currently only supports sjis (CP932) + // string valid while file object valid + const char *filename_sjis; }; struct fmplayer_file *fmplayer_file_alloc(const void *path, enum fmplayer_file_error *error); void fmplayer_file_free(const struct fmplayer_file *fmfile); @@ -49,6 +53,10 @@ const wchar_t *fmplayer_file_strerror_w(enum fmplayer_file_error error); // fmplayer_fileread("/home/foo/bar.mz", "BAZ", ".PVI", &filesize); void *fmplayer_fileread(const void *path, const char *pcmname, const char *extension, size_t maxsize, size_t *filesize, enum fmplayer_file_error *error); +// allocates string in sjis +// free with free() +char *fmplayer_path_filename_sjis(const void *path); + void *fmplayer_path_dup(const void *path); #endif // MYON_FMPLAYER_FILE_H_INCLUDED |