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 


Changing pitch/tempo of MPEG-stream... (Anybody? please?)

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


Joined: 24 Apr 2002
Posts: 72

PostPosted: Wed Jan 14, 2004 5:45 pm    Post subject: Changing pitch/tempo of MPEG-stream... (Anybody? please?) Reply with quote

Hello fellow-VDS-programmers!

I'm having big troubles with the program I'm making. The main task my program must do is play MPEG-files (MP3) which is not diffycult at all. Second is that I HAVE TO change the pitch/tempo of the output...

This program is for a ballroom-teacher so there MUST BE a pitch/tempo controll, but I cannot find any way to get this in VDS...

Please help Sad
Raymond

PS: SEE ALSO MY REPLY 2 POSTS BELOW...


Last edited by Raymond175 on Fri Jan 16, 2004 3:43 pm; edited 2 times in total
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Wed Jan 14, 2004 6:15 pm    Post subject: Reply with quote

I think direct sound is the way to go. You may search the net if you can find some win32 dll so that you can call from VDS if VDS 5 or use gadget DLL to call it.
Alternatively you can get a custom dll made for VDS from someone.

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Raymond175
Contributor
Contributor


Joined: 24 Apr 2002
Posts: 72

PostPosted: Wed Jan 14, 2004 8:52 pm    Post subject: Reply with quote

I just came accross my mind, and maybe it's what you mean with directsound... Is it possible to change the pitch/tempo of the output of the soundcard?

I do not know much about the windows API, but maybe it's possible to achieve this via the API-flags? I've got a txt-file with 15671 API-flags and I came across these 9 API flags:
- DMUS_TEMPO_MAX = 1000
- DMUS_TEMPO_MIN = 1
- MIDIPROP_TEMPO = 2
- MM_IOMAGIC_TEMPO_AUXOUT = 6
- MM_IOMAGIC_TEMPO_MIDIOUT = 4
- MM_IOMAGIC_TEMPO_MXDOUT = 5
- MM_IOMAGIC_TEMPO_SYNTH = 3
- MM_IOMAGIC_TEMPO_WAVEIN = 2
- MM_IOMAGIC_TEMPO_WAVEOUT = 1

Isn't there something possible with this? TEMPO_WAVEOUT sounds good to me, but I don't have a clue how to use this Smile Maybe do you...

Thanks,
Raymond

PS: I've also looked at the gadget-dll, but I do not see any information in this dll which can change the way my mp3's are played...


Last edited by Raymond175 on Wed Jan 14, 2004 9:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Jan 14, 2004 9:08 pm    Post subject: Reply with quote

Hi Raymond,
I think what Codescript was saying is that you will have to use a Non-VDS DLL to do what you want to do Question This means that you will have to use either VDS 5's built-in ability to call Non-VDS DLL's or use either Gadget or VDSug to call the Non-VDS DLL. A couple of DLL's that you might want to check into is the Bass.dll and the fmod.dll... I working on a demo for my Gadget DLL that will use the functions from Bass.dll to allow you to use Bass.dll's full API. I have most of it coded already but I have not posted it as of yet. Also I am unsure if Bass.dll can handle multi-soundcards.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
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