forked from vgmstream/vgmstream
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request vgmstream#1571 from bnnm/api-misc6
- Add HCA keys - Fix some custom/buggy .dsp - foobar: tweak file info - cleanup
- Loading branch information
Showing
94 changed files
with
1,985 additions
and
1,891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,32 @@ | ||
#ifndef _FOO_FILETYPES_H_ | ||
#define _FOO_FILETYPES_H_ | ||
|
||
class input_file_type_v2_impl_vgmstream : public input_file_type_v2 { | ||
public: | ||
input_file_type_v2_impl_vgmstream() { | ||
ext_list = vgmstream_get_formats(&ext_list_len); | ||
} | ||
unsigned get_count() { return ext_list_len; } | ||
bool is_associatable(unsigned idx) { return true; } | ||
void get_format_name(unsigned idx, pfc::string_base & out, bool isPlural) { | ||
out.reset(); | ||
pfc::stringToUpperAppend(out, ext_list[idx], pfc::strlen_utf8(ext_list[idx])); | ||
out += " Audio File"; | ||
if (isPlural) out += "s"; | ||
} | ||
void get_extensions(unsigned idx, pfc::string_base & out) { | ||
out = ext_list[idx]; | ||
} | ||
|
||
private: | ||
const char ** ext_list; | ||
size_t ext_list_len; | ||
}; | ||
|
||
namespace { static service_factory_single_t<input_file_type_v2_impl_vgmstream> g_filetypes; } | ||
|
||
#endif /*_FOO_FILETYPES_H_ */ | ||
#ifndef _FOO_FILETYPES_H_ | ||
#define _FOO_FILETYPES_H_ | ||
|
||
class input_file_type_v2_impl_vgmstream : public input_file_type_v2 { | ||
public: | ||
input_file_type_v2_impl_vgmstream() { | ||
ext_list = vgmstream_get_formats(&ext_list_len); | ||
} | ||
|
||
unsigned get_count() { return ext_list_len; } | ||
|
||
bool is_associatable(unsigned idx) { return true; } | ||
|
||
void get_format_name(unsigned idx, pfc::string_base & out, bool isPlural) { | ||
out.reset(); | ||
pfc::stringToUpperAppend(out, ext_list[idx], pfc::strlen_utf8(ext_list[idx])); | ||
out += " Audio File"; | ||
if (isPlural) out += "s"; | ||
} | ||
|
||
void get_extensions(unsigned idx, pfc::string_base & out) { | ||
out = ext_list[idx]; | ||
} | ||
|
||
private: | ||
const char ** ext_list; | ||
size_t ext_list_len; | ||
}; | ||
|
||
namespace { static service_factory_single_t<input_file_type_v2_impl_vgmstream> g_filetypes; } | ||
|
||
#endif /*_FOO_FILETYPES_H_ */ |
Oops, something went wrong.