473,229 Members | 1,865 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,229 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 5361
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.