Solved

Code to program order for playing RealAudio files

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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 …
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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

706 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

20 Experts available now in Live!

Get 1:1 Help Now