I've created a NFO viewer, a small application that instantly runs (no installer/extractor).
In this application I got the .NFO textfile working as a Resource file, but modfiles don't work this easy.
I'm using BASS from http://www.un4seen.com/ and I'm able to play modfiles from a fixed location on the computer.
With this I simply mean (note that the codes are examples to give an idea for the functionality):
But this causes me to force users to extract files on that location to let it work (my application is instant run executable, no installer!).
I also have to search all correct music files with every application each time I want to share one.
There is an option: Resource. This means you can add the file in your project and you're independant of any location on the computer.
Wherever your application runs, it plays the music from within itself.
Like this:
From the computer I got it working, but from the Resource I never got any sound.
It seems it can't play it directly like from the pc. It probably needs more steps.
Are there any professionals that know how I can load this modfile (in memory?) to make it work as a resource?
I'm struggling with it for months and the people on the official BASS forums couldn't help me out, as they don't have knowledge from C#/.NET...
In this application I got the .NFO textfile working as a Resource file, but modfiles don't work this easy.
I'm using BASS from http://www.un4seen.com/ and I'm able to play modfiles from a fixed location on the computer.
With this I simply mean (note that the codes are examples to give an idea for the functionality):
BASS.Play("C:\\Test\\music.mod", 0, false, etc);
But this causes me to force users to extract files on that location to let it work (my application is instant run executable, no installer!).
I also have to search all correct music files with every application each time I want to share one.
There is an option: Resource. This means you can add the file in your project and you're independant of any location on the computer.
Wherever your application runs, it plays the music from within itself.
Like this:
BASS.Play(Properties.Resources.music, 0, false, etc);
From the computer I got it working, but from the Resource I never got any sound.
It seems it can't play it directly like from the pc. It probably needs more steps.
Are there any professionals that know how I can load this modfile (in memory?) to make it work as a resource?
I'm struggling with it for months and the people on the official BASS forums couldn't help me out, as they don't have knowledge from C#/.NET...