[linux-audio-dev] Digital in read

2003-07-04 Thread Ralfs Kurmis
Hi folks I have SB sound card and OSS driver For read sound from line in i use such functions [see below] How i can read signals from digital in ? any example/idea welcomed Tnx in advance RalfsK status = read(fdi, adat , sizeof( adat )); /* record some sound */ int fdi; /* sound

Re: [linux-audio-dev] Shared memory?

2003-07-03 Thread Ralfs Kurmis
Terve Try out this example Split it in seperate files ( Needs x ) RalfsK Hello. I have problems in getting a shared memory to work. What works is my shmalloc() which is used for sharing memory over fork(). What does not work is sharing memory between arbitrary processes. This latter uses

Re: [linux-audio-dev] Re: |||| Gain/Peak indicator

2003-06-24 Thread Ralfs Kurmis
http://sox.sourceforge.net/ http://plugin.org.uk/faq.php Many Tnx But for beginning i'm looking also for simple physical formulas for gain calculation . Is it RMS Gain (%) = sqrt ( sum 1..n ( sample[i]^2 ) ) / MAX_SINE_RMS or Gain (%) = sum 1..n abs( sample[i] ) / MAX_SINE_AREA

[linux-audio-dev] |||| Gain/Peak indicator

2003-06-23 Thread Ralfs Kurmis
Hi to developers I'm search for realtime sound and peak gain indicator (db) algorithms and formulas. My first idea is all 16 bit absolute sound_sample_values in time interval t1...t2 compare with ethalon sine wave ( where ethalon sine wave amplitude is 32000 and lenght/2 is t2-t1 ) Also

[linux-audio-dev] Tune for read (reiserfs)

2003-06-12 Thread Ralfs Kurmis
Hi folks I have two linux computers with ext3 and reiserfs file systems = follows mpg123 /my/lala.mp3 without -b option If during da playing i make copy , scandir for big folders and other intensive disk perations Then sometimes sound breaks for o,x sec Make tuning

Re: [linux-audio-dev] 8bit sound wav playing to a 16bit sound card...

2003-06-12 Thread Ralfs Kurmis
I'm new to OSS Programming, and I'm attempting to play some 8bit wav files. However OSS is telling me that my sound card will not play 8bit , only 16bit. If I force it. The sound changes pitch, and is very fast. ( obviously ). Is there anyway to convert 8bit to 16bit on the fly? I've

[linux-audio-dev] play'n'rec

2003-06-10 Thread Ralfs Kurmis
Hi folks How i can from my linux C program at the same time take sound from souncard line input ( ,maybe change level and something else ) AND give it back to line output this program do it but with pauses ~1sec some ideas ? Tnx in advance Ralfs K #include unistd.h #include fcntl.h