473,394 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Microphone?

Hello!

Can someone tell me how to make a function that returns the sound frequency
recorded by the microphone in the last moment?
I use Dev-C++ and I'm a total newbie if it's important.
Nov 14 '05 #1
5 5367
Tangerine <pa**@poczta.onet.pl> scribbled the following:
Hello! Can someone tell me how to make a function that returns the sound frequency
recorded by the microphone in the last moment?
I use Dev-C++ and I'm a total newbie if it's important.


ISO standard C does not specify anything about microphones. Please ask
in a newsgroup dedicated to your own implementation.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"Shh! The maestro is decomposing!"
- Gary Larson
Nov 14 '05 #2
Tangerine wrote:

Can someone tell me how to make a function that returns the sound
frequency recorded by the microphone in the last moment?
You mean the last trumpet has sounded? I didn't hear it :-)
I use Dev-C++ and I'm a total newbie if it's important.


No it isn't. Your question is confusing, and microphones and
their ilk are not part of the standard C language. Ask on a group
dealing with your system, after making you problem clear.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #3
CBFalconer <cb********@yahoo.com> spoke thus:
You mean the last trumpet has sounded? I didn't hear it :-)


I'd make some comment about the Book of Revelation, but I always
thought it was K&R2 ;) If you didn't hear the last trumpet, God
must've written something like

void main(void)
{
printf( "Hello, world!\n" );
}

The Last Judgement is presumably a possible consequence of UB ;)

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #4
>ubject: Microphone?
From: Tangerine pa**@poczta.onet.pl
Date: 1/8/04 9:58 AM US Mountain Standard Time
Message-id: <bt***********@news.wplus.net>

Hello!

Can someone tell me how to make a function that returns the sound frequency
recorded by the microphone in the last moment?
I use Dev-C++ and I'm a total newbie if it's important.


Goto news:comp.lang.matlab and ask your
question there. I'll answer your question
from there. But before you do, please think
a bit about what you mean by "last moment". Describe it. How many samples?
Nov 14 '05 #5
"Tangerine" <pa**@poczta.onet.pl> wrote:
Can someone tell me how to make a function that returns
the sound frequency recorded by the microphone in the
last moment? I use Dev-C++ and I'm a total newbie if
it's important.


Once you actually work out how to make your implementation
record some audio into a PCM (pulse-code modulation) raw
audio data block, you will want to use some FFT (fast
fourier transforms) to get a signal strength reading for
each frequency, and pick the maximum point.

The implementation specific part should be topical on
comp.os.ms-windows.programmer.win32 or
comp.os.ms-windows.programmer.multimedia

Whereas the domain conversion is a mathematical issue,
could be topical on comp.programming or somewhere like
sci.math

I have just implemented a simple audio recording
program on Cygwin/GCC which should be a similar
environment to your Dev-C++, it was actually very
easy while reading the API documentation.

Source here (121 lines, only two of which contain
a call to a non-standard function):
http://members.optushome.com.au/sbiber/recwave.c

--
Simon.
Nov 14 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sune Pedersen | last post by:
How do i get the microphone input level in clear text Sune
1
by: | last post by:
Can I record voice via microphone... (what class???) ....and after send the voice to server? (With a Java Applet)
1
by: Ken Lemieux | last post by:
It's my understanding in order to mute the pc microphone from c# requires DirectX 9. Could anyone confirm this for me, and provide examples or technicle refrences where it may be discussed? ...
0
by: Dr. Zharkov | last post by:
Hello. The following program does not work for me: 1. We load components of Microsoft Agent and disconnect a computer from Internet. 2. In VB .NET we create the project, appears Form1. 3. On...
2
by: Yannick | last post by:
Hello, I'm currently writing an application that has to Fourier-Analyze little pieces of audio-data but i don't know how to access the microphone input at real time. Are there libraries to do...
1
by: rajibnsu | last post by:
Hi, this is abu syed khan again. i want to write a program in c# that takes input from microphone and then give output through printer port. i can give output through a printer port. but the problem...
3
by: Porkie999 | last post by:
hi i created a program in vb.net 2005 that is meant to allow microphone activity i.e you read the lyrics to a song on the screen and you are meant to be able to sing to it through a microphone like...
0
by: roopaloswal | last post by:
Hi All, I need to record audio captured from microphone to the local file system .Is it possible? I am trying to use NetConnect() to connect to local file system. But its throwing error. I...
1
by: dolittle | last post by:
Hi, I'm new to flex and trying to understand a tutorial by reading the code. There is a line: var mics:Array = Microphone.names; Flex docs says that you need to import flash.media.Microphone...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.