 |
|
|
 |
|
 |
Thanks very much for your code.
for the fft class,I found you initialized it's array size to 512,and when calculate you used 2048 sample datas. could I let them not power of 2?
Now I need to calculate the VU and peak value,do you know how to realize it?
|
|
|
|
 |
|
 |
hi,
how to make audio bars for rtsp streaming. i have developed video wall for monitoring rtsp streaming. i have used vlc player for plyaing rtsp links. now i want audio bars to show in my monitoring wall. i have used timer thread to change the rtsp source link for vlc player. after every 60 sec new link starts in vlc player. same thing i want with audio bars.i have used 10 instances of vlc player to monitor 10 links at a time and now i want to add audio bars for every vlc player. i am using visual studio 2010 for this. pls guide..
|
|
|
|
 |
|
 |
hello again how can i ctrol volume with your project
thanks
|
|
|
|
 |
|
 |
yes, you can. and you need add a flag DSBCAPS_CTRLVOLUME | DSBCAPS_CTRLPAN for control volumn, i do not add it in my project, you can try it.
|
|
|
|
 |
|
 |
Hello thanks for the interesing article when i tried it i observe that it's not able to play some WAV files ? do u have any idea about the cause ?
thanks
|
|
|
|
 |
|
|
 |
|
 |
Your project is very good, but I don't know about C or C++ language.
Do you have a .NET version (VB or C#)?
Thanks a lot.
|
|
|
|
 |
|
 |
sorry, i'm not familiar with vb/c#, but theory are same. the project uses thread and synchronize, gdi, windows message, and directsound, you can read it and translate it as vb/c# version.
|
|
|
|
 |
|
 |
when I repeat pause and resume...sometime make noises.
How to fix this? please help me
Thanks for your kindness..
|
|
|
|
 |
|
 |
to pause or stop play thread, you should create two events to hold it first.
example:
HANDLE hPauseEvent = CreateEvent(NULL, FALSE, TRUE, NULL);
if(paused)
DWORD ret = WaitForSingleObject(hPause, INIFINET);
if(ret == WAIT_OBJECT_0)
...
|
|
|
|
 |
|
 |
Thanks a lot
Maybe the noise, it's cause of my soundcard problem.
Hm..very interesting!!
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
demo picture :http://www.cppblog.com/images/cppblog_com/jackyxinli/01.gif
click here download executable file
features:
1. mp3, wav, wma, ogg formats supported.
2. drag audio file into main window to play.
3. real-time spectrum displayed.
4. drag audio file on AudioPlayer.exe, autorun application and play.
modified on Tuesday, February 10, 2009 4:32 AM
|
|
|
|
 |
|
 |
Great jobs but there is an error with mono 8 bit.
|
|
|
|
 |
|
 |
what error? please tell me.
|
|
|
|
 |
|
|
 |
|
 |
the source code was redesigned recently, i will post the latest source code as quick as i can.
|
|
|
|
 |
|
 |
thanks~ i 'm getting much help from you!
|
|
|
|
 |
|
 |
you are welcome. and here is my latest link of executable file, you can download from AudioPlayer_20090330113.zip, or visit this link for full text of this project. my own mp3 player, this project support mp3, wma, wav, ogg, ape, flac now. enjoy!
|
|
|
|
 |
|
 |
Hi Jacky, the link only contains the executable and dll. Did you upload the source code somewhere else?
|
|
|
|
 |
|
 |
araknoid, sorry, my source code was lost when hard disk crash. it's a horrible thing happened to me. but I'm recalling it, I hope i could recover it.
|
|
|
|
 |
|
 |
Try the code from "http://www.cse.ohio-state.edu/~vinodkri/fix_fft/", it is a fixed-point FFT, and much faster than float-point FFT. The supported max length of FFT is 1024.
To get the correct spectrum result, do as the following
// Assume there are N samples input, FR is an array for real components, and FI is imagminary.
window(FR, N); // Reduce frequency leakage by hanning window
fix_fft(FR, FI, N, 0); // The result will be stored in FR & FI
loud(FL, FR, FI, N/2, 0); // Convert loudness of each components, and save the result in array FL.
For the FFT result, Only [0, N/2) is valid for the positive frequency, [N/2, N) is for negative frequency, it should be ignored.
Then, you could display spectrum according to the data in FL. 0 means the max loudness(0 db), -100 is the min loudness(-100 db). In fact, if the sound is less than -60db, it is hardly heard, so, use a threshold to assign FL[i] as 0 if it is less than -60.
I added the code in my embedded solution, it works very well just as foobar2000_v0.9.5.2.
|
|
|
|
 |
|
 |
Thank you for your help, I will try it in my App.
|
|
|
|
 |