[linux-audio-dev] NI Traktor

2003-06-12 Thread Robert Jonsson
This is a first for audio applications.

Native Instruments Traktor just appeared on Freshmeat!  :)

I guess some people are starting to take notice of the OSS community. Though 
it isn't OSS in itself and not available for Linux (OS X, + a few marginal 
os:es).
But the most interesting thing was that they used Freshmeat as a marketing 
channel.

/Robert



[linux-audio-dev] Re: [linux-audio-user] NI Traktor

2003-06-12 Thread Frank Barknecht
Hallo,
Robert Jonsson hat gesagt: // Robert Jonsson wrote:

 This is a first for audio applications.
 
 Native Instruments Traktor just appeared on Freshmeat!  :)
 
 I guess some people are starting to take notice of the OSS community. Though 
 it isn't OSS in itself and not available for Linux (OS X, + a few marginal 
 os:es).
 But the most interesting thing was that they used Freshmeat as a marketing 
 channel.

There goes the neighborhood... 

I'm not sure if I like it, that freshmeat now includes non-free
commercial software only available on non-free commercial OSes

ciao
-- 
 Frank Barknecht   _ __footils.org__


[linux-audio-dev] Re: [linux-audio-user] NI Traktor

2003-06-12 Thread Allan Klinbail
On Thu, 2003-06-12 at 17:13, Frank Barknecht wrote:
 Hallo,
 Robert Jonsson hat gesagt: // Robert Jonsson wrote:
 
  This is a first for audio applications.


I've seen Microsoft adds (paid ones) on SourceForge. so this doesn't
surprise me too much... There are alot of OSX apps appearing so it
doesn't surprise me that they are doing this. However.. I too am not
sure if I like commercial software appearing there, at the same time it
does mean that they are taking notice of the community and seeing Open
Source users as being a potential market.  



  
  Native Instruments Traktor just appeared on Freshmeat!  :)
  
  I guess some people are starting to take notice of the OSS community. Though 
  it isn't OSS in itself and not available for Linux (OS X, + a few marginal 
  os:es).
  But the most interesting thing was that they used Freshmeat as a marketing 
  channel.
 
 There goes the neighborhood... 
 
 I'm not sure if I like it, that freshmeat now includes non-free
 commercial software only available on non-free commercial OSes
 
 ciao
-- 
Allan Klinbail [EMAIL PROTECTED]



[linux-audio-dev] Re: [linux-audio-user] NI Traktor

2003-06-12 Thread Jay Vaughan
I've seen Microsoft adds (paid ones) on SourceForge. so this doesn't
surprise me too much... There are alot of OSX apps appearing so it
doesn't surprise me that they are doing this. However.. I too am not
sure if I like commercial software appearing there, at the same time it
does mean that they are taking notice of the community and seeing Open
Source users as being a potential market.
Yeah, I too don't like the freshmeat.net invasion by apps which do 
not include source.

For me, freshmeat.net has always been a mainstay of the OSS world - 
to see Microsoft ads and commercial software being pushed through it, 
well, that just saddens me... freshmeat.net will never compete with 
versiontracker.com, so why do they bother?

There is need for a real 'fresh meat' style source-code repository 
site, but one does have to wonder how its bills will be paid ...

Regardless though, its good to see NI Traktor on OSX.  If they can 
port from Windows-OSX, then they can port from OSX-Linux, I think 
...

--

;

Jay Vaughan
rdmusic:technology:synthesizers - www.access-music.de/


[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
hdparm -c1 -u1 -d1 -m16 -W1 -A1 /dev/hda  and some more options 
breaks sounds little bit shorter

Make tuning again
cat /proc/sys/vm/bdflush
echo 100 200 64 512 31 2000 50 1884 2  /proc/sys/vm/bdflush
breaks again sounds little bit shorter


ok
does somebody knows best paremeters
for comands
elvtune -r -w
echo p1...pn  /proc/sys/vm/bdflush
hdparm 
__maybe_also_others___
if higher priority is for read/play and lower for write
for ext3 and/or reiserfs 

some ideas ?
tnx in advance

RalfsK





---
This message contains no viruses. 
Guaranteed by Kaspersky Anti-Virus.
www.antivirus.lv



[linux-audio-dev] libakai

2003-06-12 Thread Christian Schoenebeck
Hi!

I have ported Sebastien Metrot's libakai to Linux some couple of weeks ago. 
Until it will be in CVS one day you can get it from:

http://stud.fh-heilbronn.de/~cschoene/projects/libakai/

I added some code to the demo application to extract samples from a Akai disc 
yesterday, so you can now actually not only see but also hear what's on a 
disc.

You will notice that there's still a small bug, I will fix it ASAP, but I 
won't complain if someone else will look for it ;)

Best regards.
Christian


Re: [linux-audio-dev] libakai

2003-06-12 Thread Allan Klinbail
Hey There

Does this mean I can read and listen to my MPC200xl .snd files?

What about editing, which software can read it?

cheers

Allan 



On Thu, 2003-06-12 at 22:28, Christian Schoenebeck wrote:
 Hi!
 
 I have ported Sebastien Metrot's libakai to Linux some couple of weeks ago. 
 Until it will be in CVS one day you can get it from:
 
   http://stud.fh-heilbronn.de/~cschoene/projects/libakai/
 
 I added some code to the demo application to extract samples from a Akai disc 
 yesterday, so you can now actually not only see but also hear what's on a 
 disc.
 
 You will notice that there's still a small bug, I will fix it ASAP, but I 
 won't complain if someone else will look for it ;)
 
 Best regards.
 Christian
-- 
Allan Klinbail [EMAIL PROTECTED]



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 noticed that XMMS 
 also fails to play the 8bit wav file correctly. 
 
 I've even tryed to convert the file from 8bit to 16bit using SOX. But with
 the 
 same results. I would like to support 8bit file wavs in my program as MOST of
 
 the wavs available are in 8bit format...
 
 Any one Have some pointers?
 
 PS: The command I used with sox is  sox -V -r 11025 -w -c 1 backup.wav 
 temp.wav 

try out also self generated sines write to /dev/dsp

hope following example helps

/*
http://205.159.169.11/reference/dsp/prog_dsp.htm
Advanced Sound Programming

This section describes some miscellaneous sound programming issues that require
special consideration or are less commonly used.

We saw earlier that /dev/dsp operates using unsigned data, either 8 or 16 bits
in size, while /dev/audio uses mu-law encoded data. It is
possible to change the data formats a device uses with the SOUND_PCM_SETFMT
ioctl call. A number of data formats are defined in the
soundcard.h header file, all prefixed with the string AFMT_. For example, to set
the coding format to mu-law, you could use:

fmt = AFMT_MU_LAW;
ioctl(fd, SOUND_PCM_SETFMT, fmt);

The argument will be returned with the coding format that was selected by the
kernel (which will be the same as the one selected unless the
device does not support it). The special format AFMT_QUERY will return default
format for the device. To find out all of the formats that a
given device supports, you can use the SOUND_PCM_GETFMTS ioctl. It returns a
bitmask that has bits set for each of the supported
formats.

The SNDCTL_DSP_GETBLKSIZE ioctl returns the block size that the sound driver
uses for data transfers. The returned value is an integer,
indicating the number in bytes. This information can be useful in an application
program for selecting a buffer size that ensures that the data
passed to the driver is transferred in complete blocks.

The SNDCTL_DSP_GETCAPS ioctl returns a bitmask identifying various capabilities
of a sound card DSP device. They are listed in
soundcard.h with labels prefixed by DSP_CAP. A typical capability is
DSP_CAP_DUPLEX, a boolean flag indicating whether the device
supports full duplex mode (simultaneous record and playback).

Example 14-6 illustrates these system calls, displaying information about a DSP
device (/dev/dsp by default).Determining DSP Capabilities
*/
/*
 * dsp_info.c
 * Example program to display sound device capabilities
 */

#include unistd.h
#include stdlib.h
#include stdio.h
#include string.h
#include sys/ioctl.h
#include fcntl.h
#include linux/soundcard.h

/* utility function for displaying boolean status */
static char *yes_no(int condition)
{
  if (condition) return yes; else return no;
}

/*
 * Set sound device parameters to given values. Return -1 if
 * values not valid. Sampling rate is returned.
 */
static int set_dsp_params(int fd, int channels, int bits, int *rate) 
{
  int status, val = channels;

  status = ioctl(fd, SOUND_PCM_WRITE_CHANNELS, val);
  if (status == -1)
perror(SOUND_PCM_WRITE_CHANNELS ioctl failed);
  if (val != channels) /* not valid, so return */
return -1;
  val = bits;
  status = ioctl(fd, SOUND_PCM_WRITE_BITS, val);
  if (status == -1)
perror(SOUND_PCM_WRITE_BITS ioctl failed);
  if (val != bits)
return -1;
  status = ioctl(fd, SOUND_PCM_WRITE_RATE, rate);
  if (status == -1)
perror(SOUND_PCM_WRITE_RATE ioctl failed);
  return 0;
}

int main(int argc, char *argv[])
{
  int rate;
  int channels;/* number of channels */
  int bits;/* sample size */
  int blocksize;   /* block size */
  int formats; /* data formats */
  int caps;/* capabilities */
  int deffmt;  /* default format */
  int min_rate, max_rate;  /* min and max sampling rates */
  char *device;/* name of device to report on */
  int fd;  /* file descriptor for device */
  int status;  /* return value from ioctl */

  /* get device name from command line or use default */
  if (argc == 2)
device = argv[1];
  else
device = /dev/dsp;

  /* try to open device */
  fd = open(device, O_RDWR);
  if (fd == -1) {
fprintf(stderr, %s: unable to open `%s', , argv[0], device);
perror();
return 1;
  }

  status = ioctl(fd, SOUND_PCM_READ_RATE, rate);
  if (status ==  -1)
perror(SOUND_PCM_READ_RATE ioctl failed);
  status = ioctl(fd, SOUND_PCM_READ_CHANNELS, channels);
  if (status ==  -1)
perror(SOUND_PCM_READ_CHANNELS ioctl failed);
  status = ioctl(fd, SOUND_PCM_READ_BITS, bits);
  if (status ==  -1)
perror(SOUND_PCM_READ_BITS ioctl failed);
  status = ioctl(fd, SNDCTL_DSP_GETBLKSIZE, blocksize);
  if (status 

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

2003-06-12 Thread Derrick
I'm playing the file at the Sample rate that is in the header of the wav 
file.. when I play the file in gnome recorder it reports a Sample Rate of 
11025, My program also reads it as 11025 and sets the  SNDCTL_DSP_SPEED 
accordingly... 

Let me restate.. The sound that does play is so fast that it sounds almost 
like noise. If you didn't know that the sound bite actually was.



On Thursday 12 June 2003 12:42, Tim Hockin wrote:
  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 ).

 Bit-depth has nothing to do with pitch.  If it sounds fast, it is because
 the file is at a lower sample rate.

-- 
What's another word for thesaurus?
-- Steven Wright



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

2003-06-12 Thread Erik de Castro Lopo
On Thu, 12 Jun 2003 11:18:53 -0400
Derrick [EMAIL PROTECTED] wrote:

 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 noticed that XMMS 
 also fails to play the 8bit wav file correctly. 

You can fix this by disabling XMMS's built in WAV reader and using XMMS_Sndfile
instead:

http://www.zip.com.au/~erikd/XMMS/

which will also allow you to play a large number of other file types.

 I've even tryed to convert the file from 8bit to 16bit using SOX. But with the 
 same results. I would like to support 8bit file wavs in my program as MOST of 
 the wavs available are in 8bit format...

For reading sound files from within a program libsndfile:

http://www.zip.com.au/~erikd/libsndfile/

which is required by XMMS_Sndfile anyway. It contains an example program which
uses OSS to play back any sound file it can read.

Erik
-- 
+---+
  Erik de Castro Lopo  [EMAIL PROTECTED] (Yes it's valid)
+---+
I hack, therefore I am.