Click here to Skip to main content
15,905,616 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a code that can download the audio file (.mp3 or .aac) from Internet. It works perfectly. But at the right moment, I need to start to play this audio file while it is still downloading. How to do it? What methods are used?
Thanks!
Posted

1 solution

What you are trying to implement here follows the typical producer-consumer pattern[^].
The producer will be the downloader of the music file and the consumer will be the player.

Do some research on that and you'll most probably even find some sample code.

Regards,
— Manfred
 
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