Help - Search - Members - Calendar
Full Version: newbie SDK question
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
psasidisrcum
Forgive my ignorance, but I wasn't really sure where to start.
If all I want to do is play / enqueue a file in foobar, which function under which class would I call?
I realize I could just "execute" the file in Windows with foobar being the default audio player, but I'm hoping to do this more elegantly.. smile.gif Can anyone help?

While I'm asking.. is there a simple way to use foobar to return file info (ie. bitrate, length, etc) for various audio file formats? I'm growing a bit weary using separate DLLs for each type of audio file format to support in my app. tongue.gif
Thanks a bunch!
foosion
Adding a track to the active playlist:
CODE
playlist_oper::get()->add_location("C:\\bla\\music.ext");

Playing a track on the active playlist:
CODE
playlist_oper::get()->play_item(index);

Activating another playlist:
CODE
playlist_switcher::get()->set_active_playlist(index);


There is currently no standard way to programmatically get information from foobar2000 to another process; there are some third party extensions that allow this to a certain degree (foo_remote for example).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.