[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Audio playback and classes
From: |
Vytautas Jancauskas |
Subject: |
Re: Audio playback and classes |
Date: |
Fri, 28 Jun 2013 10:51:37 +0300 |
I am a bit confused how to handle variable bit depth audio data. Audio
files come in different variates, like 8 bit, 16 bit, 24 bit, etc.
These bit depths give different value ranges. From what I understand
from matlab documentation it takes in to account the type of values
the array to be played back contains (e.g. int8, int16, uint16, etc).
But in octave I cannot get that type or at least I don't know how (the
numeric arrays are all treated as if they were arrays of doubles
right?) I need this information for correct playback. There are two
options for dealing with this I can think of:
a) Guess the type of array by seeing what values the array elements take.
b) Limit the values to real values in the range (-1.0, 1.0) and make
the user take care of conversion to that format themselves.
Are there any suggestions about this?
- Audio playback and classes, Vytautas Jancauskas, 2013/06/17
- Re: Audio playback and classes, Michael Goffioul, 2013/06/17
- Re: Audio playback and classes, Jordi Gutiérrez Hermoso, 2013/06/18
- Re: Audio playback and classes, Mike Miller, 2013/06/18
- Re: Audio playback and classes, Michael Goffioul, 2013/06/18
- Re: Audio playback and classes, Carnë Draug, 2013/06/18
- Re: Audio playback and classes, Vytautas Jancauskas, 2013/06/19
- Re: Audio playback and classes, Jordi Gutiérrez Hermoso, 2013/06/19
- Re: Audio playback and classes, Mike Miller, 2013/06/21
- Re: Audio playback and classes,
Vytautas Jancauskas <=
- Re: Audio playback and classes, Michael Goffioul, 2013/06/28
- Re: Audio playback and classes, Mike Miller, 2013/06/28