Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Tier2 windows and raw file paths to sounds

Author
Message
Westa
13
Years of Service
User Offline
Joined: 28th Oct 2011
Location:
Posted: 22nd Nov 2017 09:25
Can anyone correct me - but is it still the case the LoadSound and LoadMusic and the OGG versions are still not able to use raw paths to sound files.
Seems like an odd limitation on the windows platform for Sounds only ??

Westa
puzzler2018
User Banned
Posted: 22nd Nov 2017 19:23
Follow your nose through here

https://forum.thegamecreators.com/thread/219641#msg2602943

Quote from Rick

File Commands
* Added SimplifyPath, JoinPaths, and IsAbsolutePath commands to manage file paths
* Added CountWindowsDrives and GetWindowsDrive to get the drives available on Windows devices
* ChooseRawFile now has an extra parameter to return the full path instead of copying the file to the write folder
* Added OpenRawFolder, GetRawFolderNumFiles, GetRawFolderNumFolders, GetRawFolderFileName, and GetRawFolderFolderName to get the contents of any folder anywhere on the filesystem on all platforms
----> * Any command that takes a file path can now use an absolute path with the prefix "raw:" to allow access to files anywhere on the filesystem on all platforms, e.g. "raw:C:\MyFolder\MyFile.txt"
* SetRawWritePath is now deprecated in favour of the above raw folder commands and raw file paths
* GetFirstFile, GetFirstFolder, GetFileCount, and GetFolderCount now have an extra parameter to return only files from the read folder, or write folder, or both (default)




Any load commands can use "raw:c:\folder\sound.ogg"

Needs testing in C though, but thats how to do it in T1



D
Westa
13
Years of Service
User Offline
Joined: 28th Oct 2011
Location:
Posted: 24th Nov 2017 01:14 Edited at: 24th Nov 2017 01:23
Yep very aware of raw: paths - using it everywhere for other stuff.

But that's not what i've been seeing on tier2 for sound - cant seem to get raw paths to work for any type of sound.
Also as an aside - setting SOUND ID's also seems to still do weird things as well.

Paul - you got any thoughts ??

Westa
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 27th Nov 2017 14:58
I'm not aware of any reason why the music or sound commands would fail with raw paths. Tier 2 also uses the same code path as Tier 1 so there shouldn't be any difference there. Do you get any error messages in the Visual Studio Output window?

Login to post a reply

Server time is: 2024-11-24 05:37:59
Your offset time is: 2024-11-24 05:37:59