Solved

Code to program order for playing RealAudio files

Posted on 1998-03-30
4
207 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
  • 3
4 Comments
 
LVL 5

Accepted Solution

by:
bin_huwairib earned 100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

932 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now