Solved

Code to program order for playing RealAudio files

Posted on 1998-03-30
4
244 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

710 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