≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Relative path not working?
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b]bongmatser420[/b] wrote: Hello all, when I try to make irrKlang play a sound using a relative path, for example like so: [code] engine->play2D("bell.wav", false); [/code] ...irrKlang complains, saying "Could not open sound file: bell.wav". If I specify the absolute path to the file, like: [code] engine->play2D("C:/projects/irrklangtest/bell.wav", false); [/code] ... then irrKlang will play the sound. I don't understand why the relative path does not work when the absolute path does? I'm using codeblocks, and have placed a copy of bell.wav in both the root folder of the project, and also in the folder that's used as a working directory when the project is compiled and run. I don't understand where irrKlang is actually looking such that it cannot see this file? Thanks for any help[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact