no CMake? no problem!
This commit is contained in:
parent
763017886e
commit
42651f0b0c
11 changed files with 1707 additions and 9 deletions
|
|
@ -54,7 +54,13 @@ sf_count_t SFWrapper::ioGetSize() {
|
|||
}
|
||||
|
||||
sf_count_t SFWrapper::ioSeek(sf_count_t offset, int whence) {
|
||||
return fseek(f,offset,whence);
|
||||
printf("SFWrapper: SEEK!\n");
|
||||
fseek(f,offset,whence);
|
||||
long ret=ftell(f);
|
||||
if (ret<0) {
|
||||
return -1;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
sf_count_t SFWrapper::ioRead(void* ptr, sf_count_t count) {
|
||||
|
|
|
|||
|
|
@ -8082,11 +8082,15 @@ bool FurnaceGUI::init() {
|
|||
if (strcmp(f.extension,"dmc")==0) continue;
|
||||
if (strcmp(f.extension,"brr")==0) continue;
|
||||
|
||||
// special treatment for Ogg
|
||||
// special treatment for Ogg and MPEG
|
||||
if (strcmp(f.extension,"oga")==0) {
|
||||
audioLoadFormats.push_back(f.name);
|
||||
audioLoadFormats.push_back("*.ogg *.oga *.opus");
|
||||
compatFormats+="*.ogg *.oga *.opus";
|
||||
compatFormats+="*.ogg *.oga *.opus ";
|
||||
} else if (strcmp(f.extension,"m1a")==0) {
|
||||
audioLoadFormats.push_back(f.name);
|
||||
audioLoadFormats.push_back("*.m1a *.mp1 *.mp2 *.mp3");
|
||||
compatFormats+="*.m1a *.mp1 *.mp2 *.mp3 ";
|
||||
} else {
|
||||
audioLoadFormats.push_back(f.name);
|
||||
audioLoadFormats.push_back(fmt::sprintf("*.%s",f.extension));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue