Interesting solution! I'm surprised it can tell the diff between 6000 and 6001 hz, most audio devices run at fixed frequencies and most players don't bother correcting. Using your much-beloved sox utility on a fixed-rate raw file might give you more reliable and portable control -- resample it to one rate and force it to output at another rate.
:cool: after installing solaris 10 5/08/09 directory the computer rebooting then the massage "out of frequency" appear.i want a solution first
second my main board is GA-MA780G UD3H (14 Replies)
Hi,
Could anyone help me with the following question, if I have two colums (names and frequency) as follows in a file called name.txt
Michael 1
Jones 1
Ben 2
Rebeca 4
David 1
and I want to use bash script called freqnames.sh that takes one argument (name) and the output should be... (3 Replies)
IKHz_SW_OSX.py
A DEMO mono _pure_ sinewave generator using standard text mode Python 2.6.7 to at least 2.7.3.
This code is EASILY modifyable to Python version 3.x.x...
This DEMO kids level 1KHz generator is mainly for a MacBook Pro, (13 inch in my case), OSX 10.7.5 and above. See below...... (0 Replies)
A very simple crude sinewave generator.
The file required is generated inside the code, is linear interpolated and requires /dev/audio to work. Ensure you have this device, if not the download oss-compat from your OS's repository...
It lasts for about 8 seconds before exiting and saves a... (5 Replies)
I'm trying to record audio using Audacity 2.0.5 installed from SlackBuilds. My system is 64-bit Slackware 14.1 and a sound card is Intel HD Audio. I didn't change my sound system to OSS. (Default sound system in Slackware 14.1 is ALSA, isn't it?) First, I set Internal Microphone slider in KMix... (2 Replies)
This is a small program as a tester for a basic sweep generator for bandwidth testing of AudioScope.sh.
This DEMO is only capable of 4KHz down to about 85Hz and back due to the low bit rate, but it is proof of concept for a much wider variant using a much higher bit rate.
The file generated... (4 Replies)
Ok guys, gals and geeks...
As from today I am starting to learn awk in earnest doing something totally different.
I am going to create a pseudo-Audio_Function Generator centred around OSX 10.11.x minimum. The code below is a tester to see what the possibilities are.
All waveforms will be... (11 Replies)
Hi all...
Well I have not been inactive but working out how to make OSX 10.14.x command line audio player have a variable sample rate.
This is a back door as afplay does not have a sample rate flag unlike aplay for ALSA, in Linux flavours.
This is a DEMO only but a derivative of it will... (2 Replies)
Discussion started by: wisecracker
2 Replies
LEARN ABOUT CENTOS
sdl_audiospec
SDL_AudioSpec(3) SDL API Reference SDL_AudioSpec(3)NAME
SDL_AudioSpec - Audio Specification Structure
STRUCTURE DEFINITION
typedef struct{
int freq;
Uint16 format;
Uint8 channels;
Uint8 silence;
Uint16 samples;
Uint32 size;
void (*callback)(void *userdata, Uint8 *stream, int len);
void *userdata;
} SDL_AudioSpec;
STRUCTURE DATA
freq Audio frequency in samples per second
format Audio data format
channels Number of channels: 1 mono, 2 stereo
silence Audio buffer silence value (calculated)
samples Audio buffer size in samples
size Audio buffer size in bytes (calculated)
callback(..) Callback function for filling the audio buffer
userdata Pointer the user data which is passed to the callback function
DESCRIPTION
The SDL_AudioSpec structure is used to describe the format of some audio data. This structure is used by SDL_OpenAudio and SDL_LoadWAV.
While all fields are used by SDL_OpenAudio only freq, format, samples and channels are used by SDL_LoadWAV. We will detail these common
members here.
freq The number of samples sent to the sound device every second. Common values are 11025, 22050 and 44100. The higher the
better.
format Specifies the size and type of each sample element
AUDIO_U8
AUDIO_S8
AUDIO_U16 or AUDIO_U16LSB
AUDIO_S16 or AUDIO_S16LSB
AUDIO_U16MSB
AUDIO_S16MSB
AUDIO_U16SYS
AUDIO_S16SYS
channels The number of seperate sound channels. 1 is mono (single channel), 2 is stereo (dual channel).
samples When used with SDL_OpenAudio this refers to the size of the audio buffer in samples. A sample a chunk of audio data of
the size specified in format mulitplied by the number of channels. When the SDL_AudioSpec is used with SDL_LoadWAV sam-
ples is set to 4096.
SEE ALSO
SDL_OpenAudio, SDL_LoadWAV
SDL Tue 11 Sep 2001, 22:58 SDL_AudioSpec(3)