01-30-2008
Playing Audio files in C
Hi All,
Looking for an assistance on how to access the speakers of my machine and play audio files using C.
Any tutorials will be of great help.
Regards,
Sayantan.
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I play audio through the web browser and it plays ok on windows. When i try the same thing on unix i get the error message "sh: /usr/local/bin/sox: not found. I've tried 'locate sox' and can't seem to find it. Is there some way I can change the browser settings so they play the audio... (3 Replies)
Discussion started by: molli_81
3 Replies
2. UNIX for Dummies Questions & Answers
I'd like to capture the audio playing in itunes (OSX) to a file (from the command line).
I currently use Wiretap Pro, but i'd like a non-gui. I tried installing sox, but after installing about 40-50 dependencies it crashed out. I do have ffmpeg working and I am pretty sure it can capture what's... (0 Replies)
Discussion started by: sentinel
0 Replies
3. UNIX for Dummies Questions & Answers
I've quite a collection audio files, mostly flac. In Rythmbox there are a files with no tags filled or filled with describing names as Track 01. I can look for properties to see which file it is and tag it with Easytag. But that quite time consuming.
Is there a command line or a simple set of... (35 Replies)
Discussion started by: MrZehl
35 Replies
4. UNIX for Dummies Questions & Answers
Hi, I would like to write a shell script that will:
-search the files of a specific user to find any audio files with a bandwidth iqual or greater than 192 kps
- on the results i should see the file name along with all the whole file route and each file's size
So I guess i should be using... (1 Reply)
Discussion started by: ubu-user
1 Replies
5. Shell Programming and Scripting
I am having following folder structure.
/root/audios/pop
/root/audios/jazz
/root/audios/rock
Inside those pop, jazz, rock folders there are following files,
p1.ul, p2.ul, p3.ul, j1.ul, j2.ul, j3.ul, r1.ul, r2.ul, r3.ul
And I have a file named as "audio.txt" in the path /root/audios,... (11 Replies)
Discussion started by: gopikrish81
11 Replies
6. Shell Programming and Scripting
Hi All,
I have next to zero knowledge on what I am about to ask so I will just ask it in plain English :)
I am wondering how best to go about manipulating audio files server side. The manipulations required are join files one after the other, eg, audio1 + audio2 + audio3 + audio4 = audio5
... (0 Replies)
Discussion started by: linuxgoat
0 Replies
7. Slackware
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)
Discussion started by: qzxcvbnm
2 Replies
LEARN ABOUT CENTOS
sfinfo
SFINFO(1) SFINFO(1)
NAME
sfinfo - display information about audio files
SYNOPSIS
sfinfo [options] audio files...
DESCRIPTION
sfinfo prints information about the specified audio files, including file format, sample rate, duration, and audio data format.
By default sfinfo displays information in a longer, multi-line format; specifying the --short or -s option produces a short, single-line
summary.
Any files which are not recognized as valid audio files will be ignored unless the --reporterror or -r option is given. The file formats
currently supported by sfinfo are AIFF, AIFF-C, NeXT/Sun .snd/.au, WAVE, Berkeley/IRCAM/CARL Sound File, AVR, Amiga IFF/8SVX, Sample
Vision, Creative Voice File, NIST SPHERE, and Core Audio Format.
OPTIONS
--short, -s
Print short single-line summary of each recognized audio file.
--reporterror, -r
Print an error message if any of the specified files are not recognized as valid audio files.
--help, -h
Print help message.
--version, -v
Print version information.
EXAMPLES
Display summary of an audio file:
% sfinfo drum.aiff
File Name drum.aiff
File Format Audio Interchange File Format (aiff)
Data Format 16-bit integer (2's complement, big endian)
Audio Data 1569972 bytes begins at offset 54 (36 hex)
2 channels, 392493 frames
Sampling Rate 44100.00 Hz
Duration 8.900 seconds
List all recognized audio files in the current directory using the short output format:
% sfinfo -s *
9.60s 44100.00 aiff 1ch 16b -- bass.aiff
8.90s 44100.00 aiff 2ch 16b -- drum.aiff
SEE ALSO
sfconvert(1)
AUTHOR
Michael Pruett <michael@68k.org>
Audio File Library 0.3.6 03/06/2013 SFINFO(1)