|
From: Vladimir S. <ha...@so...> - 2004-07-01 02:26:45
|
Guys, Found a funny problem by typo :) GET AVAILABLE_AUDIO_OUTPUT_DRIVERS Alsa,Jack GET AUDIO_OUTPUT_DRIVER INFO Al ERR:0:There is no audio output driver 'Al'. GET AVAILABLE_AUDIO_OUTPUT_DRIVERS Al,Alsa,Jack Guess why? Basically stl map's accessor operator can't be used on a map unless we are sure that what we are looking for is already there, otherwise it will add it to the map! For example: std::map <String, int> test; test["test1"] = 1; (at this point there is one element in the map. we can iterate the map and iter->first will be "test1" and iter->second will be 1). if (test["test2"]) smth(); smth() will not execute of course. But now if we iterate thru the map we'll find that there is a SECOND entry with iter->first == "test2" and iter->second == 0. So if you don't mind i'll modify some factory code to use count() to make sure entries exist instead of using accessor operator. Regards, Vladimir. PS: Benno, did you say you were going to install some bugtracking software? |