|
From: Yoda-JM <yo...@us...> - 2009-09-17 09:05:24
|
Module: performous
Branch: master
Commit: cfbe99c107d834ed31b27d4f4af741bd4da0c8b9
Author: Vincent Le Ligeour <yo...@us...>
Date: Thu Sep 17 11:05:07 2009 +0200
Fixed editor segfault
---
editor/main.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/editor/main.cc b/editor/main.cc
index 7ce6e18..c7156f9 100644
--- a/editor/main.cc
+++ b/editor/main.cc
@@ -27,8 +27,8 @@ int main(int argc, char **argv) {
unsigned int i = 0;
int64_t position = 0;
- da::sample_t *sample = new da::sample_t(2);
- da::pcm_data data(sample, 1500, 2, 48000);
+ std::vector<da::sample_t> sample(1500*2);
+ da::pcm_data data(&sample[0], 1500, 2, 48000);
while( mpeg.audioQueue(data, position) ) {
std::cout << i << ": " << position << " " << double(position) / double(48000*2)<< std::endl;
|