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 NETBSD
audioctl
AUDIOCTL(1) BSD General Commands Manual AUDIOCTL(1)
NAME
audioctl -- control audio device
SYNOPSIS
audioctl [-d device] [-n] -a
audioctl [-d device] [-n] name ...
audioctl [-d device] [-n] -w name=value ...
DESCRIPTION
The audioctl command displays or sets various audio system driver variables. If a list of variables is present on the command line, then
audioctl prints the current value of those variables for the specified device. If the -a flag is specified, all variables for the device are
printed. If the -w flag is specified audioctl attempts to set the specified variables to the given values.
The -d flag can be used to give an alternative audio control device, the default is /dev/audioctl0.
The -n flag suppresses printing of the variable name.
ENVIRONMENT
AUDIOCTLDEVICE the audio control device to use.
FILES
/dev/audio0 audio I/O device (resets on open)
/dev/audioctl0 audio control device
/dev/sound0 audio I/O device (does not reset on open)
EXAMPLES
To set the playing sampling rate to 11025, you can use
audioctl -w play.sample_rate=11025
To set all of the play parameters for CD-quality audio, you can use
audioctl -w play=44100,2,16,slinear_le
Note that many of the variables that can be inspected and changed with audioctl are reset when /dev/audio0 is opened. This can be circum-
vented by using /dev/sound0 instead.
COMPATIBILITY
The old -f flag is still supported. This support will be removed eventually.
SEE ALSO
audioplay(1), audiorecord(1), mixerctl(1), audio(4), sysctl(8)
HISTORY
The audioctl command first appeared in NetBSD 1.3.
BSD
January 27, 2002 BSD