libvorbisfile ov_read_float
-
Hallo,
vielleicht kennt sich ja jemand hier mit libvorbisfile aus.
Die Funktion ov_read_float sieht so aus:
long ov_read_float(OggVorbis_File *vf,float ***pcm_channels,int samples, int *bitstream);
Im Header steht als Dokumentation:
input values: pcm_channels) a float vector per channel of output
Daraus werd ich nicht schlau
:
wie ist jetzt dann pcm_channels aufgebaut?
-
Ein Array aus Vektoren aus Floats.
-
Wie es eben in der Doku steht, ein Float Vektor (Array) für jeden Ausgabe Kanal.
Also angenommen du hast 2 Kanäle (Stereo), dann säh das wohl so aus
float pcm_data[2][data_n]; ov_read_float(vf, &pcm_data, data_n, bitstream);
(keine Garantie :))
-
Danke
probier's mal aus
-
Ich hab's jetzt mit ov_read hingekriegt.
Trotzdem danke.YASC