forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDSMedia - Am I missing something?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Sun Apr 23, 2006 7:46 pm    Post subject: VDSMedia - Am I missing something? Reply with quote

Hi,

I'm trying to integrate VDSMedia in my program, but everytime I hit the Play button in my program all I hear is silence.
I tried the demo program provided with VDSMedia and the sounds works fine even on the same WAV- and MID-files as I tried in my program.
I thought I had everything in my program that the demo program had so where am I going wrong?

Here's an abbreviating of my code:
Code:

  EXTERNAL @PATH(%0)vdsmedia.dll,invalidserial|140731113249

  #DEFINE COMMAND,media
  #DEFINE FUNCTION,media 

  DIALOG CREATE,xxxx,-1,0,477,422,CLASS TSURFX

  MEDIA WINDOW,#TSURFX
  MEDIA ADD,MusicMedium,1,1,1,1
  MEDIA VOLUME,MusicMedium,0
  MEDIA HIDE,MusicMedium

  ........
  ........
  DIALOG SHOW

:BtnPlayBUTTON
   MEDIA LOAD,MusicMedium,%%MusicFile
   MEDIA PLAY,MusicMedium

   GOTO evloop


Hope anyone can spot what I'm doing wrong because it starts to drive me nuts.

Jan
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Apr 24, 2006 8:14 am    Post subject: Reply with quote

Jan, maybe this line is causing the volume to be so low?

Code:
MEDIA VOLUME,MusicMedium,0

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Mon Apr 24, 2006 8:28 am    Post subject: Reply with quote

Thanks for your reaction Skit.

According the documentation volume zero means full volume.
I also tried it without this line and still only silence.
I've gone over the VdsMedia example source time and time again and as far as I can see there nothing left out that should be needed.
Maybe Marty can shine a light on this one.

Kind of frustrating when you load the example and all goes well and when you load your own program with the same construction nothing happens.
Well that's life ....... full of surprises and challenges.

Crying or Very sad

Jan
Back to top
View user's profile Send private message Visit poster's website
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Mon Apr 24, 2006 8:34 am    Post subject: Reply with quote

Dumb, dumb, dumb!!!

I found it.
The variable %%MusicFile contained the filename of the musicfile but not the path so VdsMedia couldn't find it and play.

I changed that line to
Code:

 MEDIA LOAD,mMedium,@PATH(%0)Working\%%MusicFile


and all is well.

Shame on me!

Embarassed
Jan
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group