[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: audio problems
From: |
Matthew Flax |
Subject: |
Re: audio problems |
Date: |
Tue, 11 Dec 2001 18:50:55 +1100 |
User-agent: |
Mutt/1.2.5i |
Hi there,
I am just writing to let you know that the audio output is alwayse @ 8
bit, 8 KHz
The way to use this is to make sure your signal (x) is :
%# scale x to max 8 bit levels
x=x/max(x)*128;
%# resample x to the correct sampling freq.
fs=44100
playaudio(x(1:(fs/x):length(x)))
that should work I believe
--
Matt
For electronic musicians ...
Vector Bass : http://mffmvectorbass.sourceforge.net/
For developers ...
TimeScale Audio Mod : http://mffmtimescale.sourceforge.net/
Multimedia Time Code : http://mffmtimecode.sourceforge.net/
3D Audio Library : http://mffm3daudiolib.sourceforge.net/
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------