Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Code to program order for playing RealAudio files

Posted on 1998-03-30
4
Medium Priority
?
259 Views
Last Modified: 2008-03-06
I need help in either finding an existing program or in writing the code to play Real Audio files in a particualar order and also have the ability to change the order during the playing of any one of the selections.
0
Comment
Question by:rfb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 5

Accepted Solution

by:
bin_huwairib earned 200 total points
ID: 1460006
Make sure the RealAudio ActiveX (RAOCX32.dll) is install on your PC, and then:
1 – Use Source property to specify a full path for RealAudio file.
2 – Use DoPlayPause method to change playing mode.
3 – Use DoStop method to stop playing.

0
 
LVL 1

Author Comment

by:rfb
ID: 1460007
any chance you could supply some example code?

0
 
LVL 5

Expert Comment

by:bin_huwairib
ID: 1460008
Do these steps rfb:
1 – Start new project (project1).
2 – Add the following controls to (form1):
 a) RealAudio ActiveX (realaudio1) and set Visible property to False.
 b) ListBox control (list1).
 c) Command Button (command1) and set Caption to “Play”.
 d) Command Button (command2) and set Caption to “Stop”.
3 – Copy and paste this code:

Private Sub Command1_Click()
 If Command1.Caption = "Play" Then
  Command1.Caption = "Pause"
 Else
  Command1.Caption = "Play"
 End If
 RealAudio1.Source = List1.Text
 RealAudio1.DoPlayPause
End Sub

Private Sub Command2_Click()
 RealAudio1.DoStop
End Sub

Private Sub Form_Load()
 'Add a full path for RealAudio file
 List1.AddItem "C:\RealAudio_File1"
 List1.AddItem "C:\RealAudio_File2"
End Sub

0
 
LVL 5

Expert Comment

by:bin_huwairib
ID: 1460009
rfb,
Please post a comment if you are facing any problem with the code.

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question