Solved

Code to program order for playing RealAudio files

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best way to parse out a json string in VB6? 10 228
Problem to With line 4 63
vbModal 12 57
adding "ungroup sheets" to existing vbs code 5 31
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

821 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