On Thu, 4 May 2006, Andraz Tori wrote:

> i don't know the code that well out of my head, but just try to make it
> work and keep the solution elegant and clean...

Public humiliation is allowed. Must note, Currently I can't test it
*with* audio.

Stefan
--- renderengine.C.orig 2006-05-04 00:45:14.212944000 +0200
+++ renderengine.C      2006-05-04 00:47:50.470709000 +0200
@@ -358,13 +358,19 @@
 
 // Retool playback configuration
                if(do_audio)
-               {
-                       audio->open_output(config->aconfig, 
-                               edl->session->sample_rate, 
-                               adjusted_fragment_len,
-                               edl->session->real_time_playback);
-                       
audio->set_software_positioning(edl->session->playback_software_position);
-                       audio->start_playback();
+               {       
+                       if (audio->open_output(config->aconfig, 
+                                  edl->session->sample_rate, 
+                                  adjusted_fragment_len,
+                                  edl->session->real_time_playback))
+                       {
+                               do_audio = 0;
+                       }
+                       else
+                       {
+                               
audio->set_software_positioning(edl->session->playback_software_position);
+                               audio->start_playback();
+                       }
                }
 
                if(do_video)
--- audiodevice.C.orig  2006-05-04 00:30:45.462650000 +0200
+++ audiodevice.C       2006-05-04 01:09:45.936921000 +0200
@@ -166,8 +166,7 @@
        out_samples = samples;
        out_realtime = realtime;
        create_lowlevel(lowlevel_out, config->driver);
-       lowlevel_out->open_output();
-       return 0;
+       return lowlevel_out->open_output();
 }
 
 int AudioDevice::open_duplex(AudioOutConfig *out_config, int rate, int 
samples, int realtime)

Reply via email to