Sound.playMusic

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Sound.playMusic

Post by Svengali »

SYSTEM: WINDOWS

Actually not a big problem (same behaviour as in v1.71), but a thing that could be changed.
Sound.playMusic doesn't return anything. Even if the file is not found I'm not getting an error in my log-file and a check (see below) doesn't work:

Code: Select all

if (!Sound.playMusic('Laenin_Theme.ogg')) log('myScript','File not found!);
or
if (Sound.playMusic('Laenin_Theme.ogg') == false) log('myScript','File not found!);
The only message is about a not cached file, but I think playMusic streams the file.

Code: Select all

[dataCache.retrieve.failed]: Failed to retrieve "resolved paths" cache object Music/Laenin_Theme.ogg -- no such entry.
Or is this a SDL thing and working on Macs?
Post Reply