Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How to make virtual input files can be converted (Read 39 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to make virtual input files can be converted

Hello:

I'm writing a looping play plugin that takes “file.ext.looper” as an input file and redirects to open “file.ext” for decoding and looping. To simplify things, we can put non-existent virtual .looper files in the .m3u playlist instead of having to manually create .looper files. The playback works great, but it can't be used in the converter. It will report "Unable to open source file: Object not found. Conversion failed: Object not found". My question is how to code around this limitation. As far as I know, vgmstream's Virtual TXTP files also has this limitation.

I came up with a fool solution with limitations. Create a link_resolver that links “C:\music\file.ext.looper” to “looper://C:\music\file.ext.looper” and then redirects the input to “C:\music\file.ext”. This plays well and can be converted. However, using the “looper://” path prefix may have unknown side effects. The console prints "Error walking directory (Invalid path): looper://C:\music\file.ext".

Thank you for reading.