Path: chuka.playstation.co.uk!news From: sceetech Newsgroups: scee.yaroze.programming.libraries Subject: Re: CdPlay() Date: Wed, 02 Apr 1997 11:40:12 +0100 Organization: SCEE Lines: 32 Message-ID: <3342378C.3257@interactive.sony.com> References: <33418941.563B@bluewin.ch> Reply-To: ps_yaroze@interactive.sony.com NNTP-Posting-Host: 194.203.13.10 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (Win95; I) Silvio Samadelli wrote: > > Hi, > > I've tried to get that CdPlay funktion to work. Somehow it doesn't work > the way I want it to. Could someone provide me with a sample for the > function call? > > Tnx, > > Silvio #include int tracks[10] = {2,4,6,8,1,3,5,7,9,0}; void main() { SsSetSerialAttr(SS_CD,SS_MIX,SS_SON); SsSetSerialVol(SS_CD,127,127); SsSetMVol(127,127); CdPlay(1,tracks,6); while(CdPlay(3,tracks,6) != -1); } This will play the tracks in the array starting at position 6 (track 5), then tracks 7 and 9, and then end. Stuart