Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 22nd, 2003, 09:40 PM
Registered User
 
Join Date: Jun 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to play music

Dear All Programmers,
Thanx to all in advance.
I want to make a programme in Vb 6 which plays a tune like Mobile ring tone. Can anyone give the Idea how to do this kind of programming.

Regards,
chandrakant
 
Old December 23rd, 2003, 08:26 AM
Authorized User
 
Join Date: Jun 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

check out the media control, but chances are you will have to use the DirectX api

 
Old December 29th, 2003, 11:48 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

In the old BASIC and BASICA programming, there used to be a PLAY command that you just told it the frequency and duration and the computer's default BEEP would play the tone. Did they get rid of that VBA?


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old December 30th, 2003, 04:34 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use the Beep API:

Public Declare Function Beep Lib "kernel32" Alias "Beep" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long

Marco

Quote:
quote:Originally posted by SerranoG
 In the old BASIC and BASICA programming, there used to be a PLAY command that you just told it the frequency and duration and the computer's default BEEP would play the tone. Did they get rid of that VBA?


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
"Music" datbase in Blaszczak OG Visual C++ 0 July 11th, 2007 10:27 AM
How to playing music in C#? Viet Hoang C# 2005 4 June 13th, 2006 03:51 AM
Playing music in C# Fightfish C# 0 June 26th, 2005 08:09 AM
Where is the Music Store? DRACULA Java Databases 4 September 23rd, 2004 12:15 AM
Music catalogue blabla1 PHP How-To 1 July 27th, 2004 01:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.