Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: is TVSounds working ????  (Read 1623 times)
jmp2
Customers
Community Member
*****
Posts: 83


« on: August 16, 2007, 03:22:38 PM »

Hi,

I delphi7 I have imported TVmedia.dll library.

all is ok, except TVsounds. (note that TVSoundMP3 is ok)

error in 

SND     := coTVSounds.Create; <= there

I want use it with Tvengine 6.5
Logged
jviper
Community Member
*
Posts: 1382

Discipline in training


« Reply #1 on: August 17, 2007, 10:40:40 AM »

Yuu did initialize the Sound engine, right? What about the "new" statement on the SND? I don't know, but from your code, seems like somthing is missing.
Logged

JAbstract.....Don't just imagine, make it happen!
jmp2
Customers
Community Member
*****
Posts: 83


« Reply #2 on: August 17, 2007, 11:44:05 AM »

Where is the function PLAY of TVSounds ?
This my code

Var

  sndEngine : TVSoundEngine;
   SND    : TVSounds;

begin

  sndengine := coTVSoundEngine.Create;
  sndengine.Init(frmmain.Handle) ;
 
  snd := sndengine.CreateSounds;
  SND.AddFile('sounds\TypeWriter.wav','SndJoker',TV_SOUNDTYPE_UNDEFINED);
  SND.AddFile('sounds\GoPlayer.WAV','GoPlayer',TV_SOUNDTYPE_UNDEFINED);


end;

I want play sound and I can't

the function Play like in VB don't exist in delphi ?

Snd['Joker'].Play or snd('Joker').Play
« Last Edit: August 17, 2007, 03:10:05 PM by jmp2 » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks