Click here to Skip to main content
15,867,141 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Hello friends

I am writing an application with VB6 language that can read text (TTS)
It is recorded that 162 audio files to read any word
And began to read the WindowsMediaPlayer
But when I began to read a lot of space of the CPU busy
That's because every time you read the word to re-load the audio file
I think that if I can save audio files in Ram would be better
The audio files with the extension "MP3" to open a Binary do
And the stored variables do
I play whenever I needed it

What do the audio files of type Binary open and we play them
Help me please . Thank you
Posted
Updated 26-Aug-15 1:44am
v3
Comments
Richard Deeming 26-Aug-15 9:27am    
VB6 is a dead language. It hasn't been updated or officially supported for over fourteen years.

Why are you starting a new project in a dead language? Particularly when its successor is free:
https://www.visualstudio.com/products/visual-studio-community-vs[^]
Member 11369267 26-Aug-15 12:34pm    
TNX But I Need VB6
Richard Deeming 26-Aug-15 12:47pm    
Why? Who decided that you have to write your brand new project in an ancient and obsolete language?
Member 11369267 27-Aug-15 6:07am    
Because in school we learn the language and I have a plan about 17 thousand lines of code they have written
Now I need to solve problems

I got my answer at the beck and other sites that will be of use DirectSound

http://www.vbforums.com/showthread.php?803333-Open-files-quot-MP3-quot-of-binary-and-Play-them&p=4922815#post4922815

Again, thank you for your help
Sergey Alexandrovich Kryukov 26-Aug-15 9:38am    
VB6 was already dead when it was first introduced to the market. There are too many people preferring beating a dead horse.
—SA

1 solution

There are options with multimedia controller to play files. It is rather simple explanation, but a .WAV can be opened this way.

Private Sub Form_Load()
MMControl1.FileName = "C:\WINDOWS\MEDIA\music.WAV"
MMControl1.Command = "Open"
End Sub
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900