Go Back   Winamp & Shoutcast Forums > Winamp3 > Wasabi Development

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 25th September 2002, 14:57   #1
Ilitirit
Junior Member
 
Join Date: Nov 2001
Posts: 27
Question How to get the main core to play 2 tracks...(Dodgy code)

i put this code in the OnInit() function of a generic component window. i wouldn't normally do something like this but i couldn't find another way to play two tracks at the same time.

code:

//mediaCore is a pointer to an svc_mediaCore
mediaCore=NULL;
//Get a pointer to the main core.
mediaCore = castService<svc_mediaCoreI>(api->service_enumService(WaSvc::MEDIACORE, 0));

//Set the next file, and play.
mediaCore->setNextFile("file:c:/downloads/test.mp3");
mediaCore->start();

return retval;



Now when I installed this component and opened it in WA3, test.mp3 starts playing. it responds to eq/volume changes (perhaps cos i'm not using dsound?) but not the stop, play, etc buttons.
when i load another mp3 in winamp both of them play! and both respond to the "seeker". only the one i opened "legally" responds to stop/play/pause though.

i noticed that svc_mediaCore has a setToken(CoreToken) method. Does this imply that a mediaCore can only be tied to one core?
Ilitirit is offline  
 
Go Back   Winamp & Shoutcast Forums > Winamp3 > Wasabi Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump