#include "bcdialog.h"
#include "cache.inc"
#include "file.inc"
-#include "formattools.inc"
+#include "formattools.h"
#include "loadbalance.h"
#include "mutex.inc"
#include "mwindow.inc"
ProxyRender(MWindow *mwindow, Asset *format_asset, int asset_scale);
~ProxyRender();
void to_proxy_path(char *new_path, Indexable *indexable, int scale);
- static int from_proxy_path(char *new_path, Indexable *indexable, int scale);
+ static int from_proxy_path(char *new_path, Asset *asset, int scale);
ArrayList<Indexable *> orig_idxbls; // originals which match the proxy assets
ArrayList<Indexable *> orig_proxies; // proxy assets
int orig_scale, new_scale;
int use_scaler, auto_scale;
int orig_w, orig_h;
- int beep;
+ int beeper_on;
+ float beeper_volume;
char *size_text[MAX_SIZES];
int size_factors[MAX_SIZES];
int total_sizes;
{
public:
ProxyBeepOnDone(ProxyWindow *pwindow, int x, int y);
- void update();
+ int handle_event();
+
+ ProxyWindow *pwindow;
+};
+
+class ProxyBeepVolume : public BC_FSlider
+{
+public:
+ ProxyBeepVolume(ProxyWindow *pwindow, int x, int y);
int handle_event();
ProxyWindow *pwindow;
MWindow *mwindow;
ProxyDialog *dialog;
+ BC_TitleBar *title_bar1, *title_bar2;
FormatTools *format_tools;
BC_Title *new_dimensions;
BC_Title *active_scale;
+ BC_Title *active_state;
ProxyMenu *scale_factor;
ProxyUseScaler *use_scaler;
ProxyAutoScale *auto_scale;
ProxyBeepOnDone *beep_on_done;
+ ProxyBeepVolume *beep_volume;
};
class ProxyFarm;
ArrayList<Asset*> *proxy_assets;
};
-class ProxyBeep : public Thread
-{
-public:
- enum { BEEP_SAMPLE_RATE=48000 };
- typedef int16_t audio_data_t;
- ProxyBeep(MWindow *mwindow);
- ~ProxyBeep();
-
- void run();
- void start();
- void stop(int wait);
- void tone(double freq, double secs, double gain);
-
- MWindow *mwindow;
- double freq, secs, gain;
- AudioDevice *audio;
- int playing_audio, interrupted;
- int audio_pos;
-};
-
#endif