forked from mwcampbell/prs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangeLog.old
More file actions
994 lines (637 loc) · 33.1 KB
/
ChangeLog.old
File metadata and controls
994 lines (637 loc) · 33.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
2004-03-03 Marc Mulcahy <marc@plbb.net>
* src/wavefileinfo.c (wave_file_info_new): Account for padding in
the format chunk header.
2004-03-02 Marc Mulcahy <marc@plbb.net>
* src/soundcard.ch: Now only using soundcard setup to open and
setup the sound card appropriately. The soundcard_setup()
function now also takes a soundcard name. These changes allow the
use of multiple sound cards.
* src/ossmixerchannel.c: Modified for new multiple soundcard support.
* src/ossmixeroutput.c: Modified for new multiple soundcard support.
* src/shoutmixeroutput.c (stop_encoder): Close the pipes when
destroying the output, so the shout thread dies.
2004-03-01 Marc Mulcahy <marc@plbb.net>
* src/wavefileinfo.c (get_wave_audio_in): Reverse parameters to
fread so it actually does return the number of bytes read
(get_wave_audio_out): Same fix to fread call.
2004-02-29 Marc Mulcahy <marc@plbb.net>
* src/shoutmixeroutput.c: Fix Vorbis broadcasting.
2004-02-18 Marc Mulcahy <marc@plbb.net>
* src/logger.c (shoutcast_log_file): Don't log album names for
Shoutcast logging.
2004-02-16 Marc Mulcahy <marc@plbb.net>
* src/mixer.c (mixer_add_file): Convert file extensions to lower
case.
* src/fileinfo.c (file_info_new): Convert file extensions to lower
case.
* src/mixerpatchpoint.c (mixer_patch_point_new): Make input buffer
size the same as the channel chunk size.
2004-02-13 Marc Mulcahy <marc@plbb.net>
* src/wavefileinfo.c (get_wave_audio_in): No ampersand on buffer
reads.
(get_wave_audio_out): No ampersand on buffer reads.
* src/wavemixerchannel.c (wave_mixer_channel_new): Fixed.
* src/mixerchannel.c (mixer_channel_new): Ensure resampler doesn't
get short-changed on nonstandard rates. Hackish fix for audio
issues with nonstandard rates.
2004-02-12 Marc Mulcahy <marc@plbb.net>
* src/fileinfo.c: Add support for .wav files.
* src/mixer.c: Add support for .wav files.
* src/wavemixerchannel.ch: Add .wav file support to the mixer.
2004-02-11 Marc Mulcahy <marc@plbb.net>
* src/db.c (create_recording_tables): Fix busted query to create category table.
2004-02-11 Marc Mulcahy <marc@plbb.net>
* src/Makefile.am (prs_server_SOURCES): Add .h files to the
distribution.
2003-08-02 Marc Mulcahy <marc@plbb.net>
* src/logger.c: Fix shoutcast title streaming logging.
* Mixer and all audio filters now use floats instead of doubles.
2003-08-01 Marc Mulcahy <marc@plbb.net>
* src/logger.ch (shoutcast_log_file): Added shoutcast title
streaming.
2003-07-17 Marc Mulcahy <marc@plbb.net>
* configure.in: Remove readline dependency.
* src/prs_server.c: Removed readline dependency.
* removed src/completion.c src/completion.h: REmoved readline
dependency.
2003-07-12 Marc Mulcahy <marc@plbb.net>
* src/mp3decoder.c src/mp3decoder.h:
Switch to using madplay. Decoder creation now takes a time rather than a frame number to start.
2003-04-24 Marc Mulcahy <marc@plbb.net>
* src/multibandaudiocompressor.ch: Suppport linking bands together.
* src/prs_config.c (multiband_audio_compressor_config): Support for
the new link option for the multiband compressor.
* src/audiocompressor.c (audio_compressor_process_data): Added a
declipper.
2003-04-10 Marc Mulcahy <marc@plbb.net>
* src/multibandaudiocompressor.c src/multibandaudiocompressor.h
src/prs_config.c: Implemented new multiband compressor.
* src/prs.c (prs_start): Prescheduling now set to five minutes.
2003-04-06 Matt Campbell <mattcampbell@pobox.com>
* TODO: Updated the to-do list.
2003-03-23 <marc@plbb.net>
* src/scheduler.c (scheduler_switch_templates): Added support for
prescheduling mixer channels from a previous template to be deleted.
(scheduler_new): Initialize scheduled_delete_time and
scheduled_delete_key.
(scheduler_schedule_next_event): Support deleting mixer channels
from a previous template.
(scheduler_schedule_next_event): Automation events with deltas of less
than 0 no longer throw the automation object and scheduler object out
of sync.
(url_manager): Fix fading out at end of url relay.
* src/scheduler.h: Adde scheduled_delete_time and scheduled_delete_key
member variables to schedule mixer channels to be deleted.
2003-02-12 Matt Campbell <mattcampbell@pobox.com>
* src/mp3decoder.c: Made a couple of fixes to ensure that decoder
processes and open file descriptors aren't left lying around.
2003-01-30 Marc Mulcahy <marc@plbb.net>
* src/scheduler.c (scheduler_schedule_next_event): Fix for path
events that can't find the file.
2003-01-25 Marc Mulcahy <marc@plbb.net>
* src/scheduler.c (scheduler_schedule_next_event): Ensure that
fallback templates for url relays fade.
* src/shoutmixeroutput.c (shout_thread): Added support for
re-establishing a shout connection if it dies.
2003-01-24 Marc Mulcahy <marc@plbb.net>
* src/scheduler.c (url_manager): Don't stop an already stopped
automation object.
2003-01-22 Marc Mulcahy <marc@plbb.net>
* src/mixerchannel.c (mixer_channel_process_levels): Fixed weirdness.
(mixer_channel_new): Set fade to correct value (1.0 not 0.0).
2003-01-21 Matt Campbell <mattcampbell@pobox.com>
* src/mp3fileinfo.c: Finally compatible with both id3lib 3.7 and
3.8.
2003-01-16 Marc Mulcahy <marc@plbb.net>
* src/urlmixerchannel.c: More attempts to get this thing to work.
* src/mixer.c (mixer_main_thread): Don't set data_end_reached in the
mixer main thread.
* src/prs_server.c (add_file): Add a key of -1 to channels added
interactively.
* src/scheduler.c (scheduler_switch_templates): Add support for
deleting mixer channels associated with a template that's been popped
off the stack. This eliminates uselessly decoding files only to
play them at a level of 0 since they've been faded out.
* src/mixerautomation.c (automation_event_new): Initialize the new
data member.
* src/mixer.ch (mixer_add_file): Allow specifying a key so the channel
can later be deleted.
* src/mixerchannel.ch: Added a key member to the MixerChannel
structure, and added a function to delete channels based on this key.
* src/mixerautomation.c: Added a data member to the AutomationEvent\
structure so we can include integer data with an automation event.
This will initially be used for deleting channels created for use in
a specific template.
* src/prs.c (prs_start): Switch to 60 second prescheduling.
* src/scheduler.c (scheduler_main_thread): Use sleep instead of
usleep.
(scheduler_switch_templates): Fixed problem when switching from a
one-time event to the last part of a previously scheduled recurring
event.
* src/mixerchannel.c (mixer_channel_get_data): Make thread safe.
2003-01-16 Matt Campbell <mattcampbell@pobox.com>
* AUTHORS: Added my name and email address.
2003-01-15 Marc Mulcahy <marc@plbb.net>
* src/mixerautomation.c (mixer_automation_start): If the event at the
top of the stack has already passed, reset the last event time to the
current time so all future events are properly timed in relation to
the one at the top of the stack.
(mixer_automation_next_event): If the automation is running, use
last_event_time+current_event->delta_time as the new last_event_time
rather than the current mixer time. This gets rid of the automation
drift problem.
* src/scheduler.c (scheduler_main_thread): Fix prescheduling bug.
2003-01-13 Marc Mulcahy <marc@plbb.net>
* Added license info to all source files.
2003-01-13 Marc Mulcahy <marc@plbb.net>
* src/mixerchannel.h: Include pthread.h
* src/scheduler.c (scheduler_main_thread): Fixed scheduler bug.
* src/prs_server.c (main): Turn off debugging by default.
* src/prs.c: Set default mixer latency to 512.
2003-01-12 Marc Mulcahy <marc@plbb.net>
* src/urlmixerchannel.c (url_mixer_channel_get_data): Fixed return
value.
* src/scheduler.c (scheduler_schedule_next_event): Fixed scheduler
being out of sync with the automation object.
2003-01-11 Marc Mulcahy <marc@plbb.net>
* src/scheduler.c (scheduler_schedule_next_event): Check the correct
playlist template for the end of the last event in the scheduler.
Force a template switch if the template has changed.
(scheduler_main_thread): Ensure scheduler doesn't get too far ahead of
realtime.
2003-01-10 Marc Mulcahy <marc@plbb.net>
* php/addtimeslot.php: Update web interface to suppor tadding
recurring time slots. Does not yet support editting recurring time
slots.
* src/prs_db_builder.c (main): Fixed segfault caused by freeing null
FileInfo pointer.
(verify_database): Delete recordings from the database which are no
longer on disk.
* src/db.c (get_playlist_template): Changed layout of the schedule
table and added support for recurring time slots.
2003-01-09 Marc Mulcahy <marc@plbb.net>
* src/shoutmixeroutput.ch (shout_mixer_output_new): Added
archive_file_name parameter.
* src/prs_config.c (stream_config): Added support for the
archive_file_name property of the stream tag.
* src/mixerautomation.c (mixer_automation_next_event): Changes to
support the removal of the ADD_CHANNEL event type.
* src/mixer.c (mixer_add_file): Allows a channel to be added to the
mixer by file name. Removed the automation event type for ADD_CHANNEL
and replaced it with ENABLE_CHANNEL.
* src/mixerchannel.c (data_reader): Ensure data reader thread is
destroyed when the channel is destroyed.
* src/prs_server.c src/completion.c src/completion.h src/Makefile.am:
Added tab completion and the "add" command to add a particular file
to the automation. Also, added the "N" command to turn off the mic
and fire next automation event, and the "S" command to turn off the
mic and start the automation.
* src/scheduler.c (scheduler_schedule_next_event)
(scheduler_switch_templates): Fixed late automation event.
* src/shoutmixeroutput.c (shout_thread): Use 1k buffers instead of
4k buffers.
2003-01-06 Marc Mulcahy <marc@plbb.net>
* src/shoutmixeroutput.c (shout_thread): Ensure 4k buffers are sent
to the server.
2003-01-04 Marc Mulcahy <marc@plbb.net>
* src/mixer.ch (mixer_set_default_level): Allows a default level to
be set so that channels added by the automation can have their
levels reduced when the mic is on.
* src/prs_server.c (mic_on): Use mixer_set_default_level.
(mic_off): Use mixer_set_default_level.
* src/mixerpatchpoint.c (mixer_patch_point_post_data): Moved fading
and output pointer movement code to the mixer channel code so
multiple buses work.
* src/mixerchannel.c (mixer_channel_process_levels): Moved this code
from mixerpatchpoint.c.
(mixer_channel_advance_pointers): Move this code from
mixerpatchpoint.c.
* src/mixer.c (mixer_main_thread): Changes to support multiple busses.
* src/soundcard.c (soundcard_setup): Added this function to
consolodate the soundcard setup in one place. Now initializes
soundcard to run at four times the latency of the software mixer.
* src/prs.c (prs_new): Use new mixer latency to sync up with changes
to the soundcard stuff.
* src/ossmixerchannel.c (oss_mixer_channel_new): Use new soundcard_setup function.
* src/ossmixeroutput.c (oss_mixer_output_free_data): Use new
soundcard_setup function.
2003-01-03 Marc Mulcahy <marc@plbb.net>
* src/mixerpatchpoint.c (mixer_patch_point_post_data): Fix
overshooting or undershooting on fades.
2003-01-02 Marc Mulcahy <marc@plbb.net>
* src/mixer.c (mixer_main_thread): Changed all length specifications
to number of samples rather than bytes.
* src/mixerchannel.c: Added support for creating a buffered
reader for a channel which runs in a separate thread.
* src/mixerpatchpoint.c (mixer_patch_point_post_data): New support
for the circular buffer used by the buffered reader for mixer channels.
* src/urlmixerchannel.c (_GNU_SOURCE): Modified for new mixer
changes-- think it's broken.
* src/vorbismixerchannel.c: Added buffered reader and modified for
new mixer changes.
* src/mp3mixerchannel.c: Added support for new buffered reader and
mixer changes.
* src/shoutmixeroutput.c: Modified for new mixer changes.
* src/prs_server.c (mic_on): Added fade when mic is turned on.
* src/prs.c (prs_new): Changed mixer latency.
(speex_connection_handler): Added stubs for Speex connection handler.
* src/ossmixerchannel.c src/ossmixeroutput.c: REduced latency.
* src/multibandaudiocompressor.c: Modified for new mixer changes.
* src/mixeroutput.c: Modified for new mixer changes.
* src/mixerbus.c: Modified for new mixer changes.
* src/filemixeroutput.c: Modified for new mixer changes.
* src/audiofilter.c: Modified to support mixer changes.
2002-12-21 Marc Mulcahy <marc@plbb.net>
* src/db.c (get_recording_from_result): Gets the entire list of
recordings in the database.
* src/prs_db_builder.c: Addded database verification. Fixed segfault
bug with recordings having no name or category.
2002-12-20 Matt Campbell <mattcampbell@pobox.com>
* src/debug.c: Now includes sys/time.h instead of time.h.
* Added debug messages and assertions, improved error handling,
and did some other cleaup.
* php/updatedb.php: Added line breaks in the form.
2002-12-20 Marc Mulcahy <marc@plbb.net>
* src/debug.ch prs_server.c: Added debugging support.
2002-12-16 Marc Mulcahy <marc@plbb.net>
* src/scheduler.c: Horribly broken, I hope I made a run at fixing this.
* src/mixerautomation.ch: Removed mixer_automation_flush and made it
part of mixer_automastion_set_start_time.
2002-12-15 Marc Mulcahy <marc@plbb.net>
* src/db.c (get_playlist_event_from_result): Fix path events.
* src/scheduler.c (scheduler_schedule_next_event): Fix path events.
* src/urlmixerchannel.c (url_mixer_channel_get_data): Track the number
of failed reads so we can kill the channel if it appears dead.
2002-12-13 Marc Mulcahy <marc@plbb.net>
* php/pathevent.php php/addevents.php: added support for path events.
* php/viewtemplate.php: Added edit support for for URL and path events.
* php/main.php php/login.php php/index.php php/config.php
php/comon.php: Added support for database updates. Database
information such as host, username, password etc. is now retrieved
from the prs.conf file for the particular station.
2002-12-12 Marc Mulcahy <marc@plbb.net>
* src/shoutmixeroutput.c (shout_thread): Eliminated use of shout_sync
since the mixer does it's own syncronization now.
2002-12-11 Marc Mulcahy <marc@plbb.net>
* php/urlevent.php php/addevents.php: Added support for URL events.
* src/db.ch: Added URL event type to the scheduler.
* src/mixerautomation.ch (mixer_automation_flush): Allows flushing
automation events before a specified time or -1 for all events.
* src/scheduler.c (url_manager): Hurrah, now urls with fallback
programming are supported.
* src/urlmixerchannel.ch: The UrlMixerChannel now actually works.
2002-12-06 Marc Mulcahy <marc@plbb.net>
* src/scheduler.c (scheduler_schedule_next_event): Support immediate
re-scheduling when database is changed.
* src/mixerautomation.c (mixer_automation_flush): Added function to
get rid of all events in support of scheduler automatic rescheduling.
* php/*.php: Updated to support new scheduling system.
* src/prs_config.c (stream_config): Fixed configuration bug when
outputting multiple streams.
* src/db.h: Added fallback_id and end_prefade to playlist_template
data structure to support new scheduling system.
* src/db.c (get_playlist_template): Fixed non-initialized variable bug.
(get_playlist_template_by_id): Added function to support fallback
templates.
* src/scheduler.c (scheduler_schedule_next_event): Changes to support
new scheduling system including fallback templates. also fixed bug
which caused hangs when no template can be found.
2002-12-04 Marc Mulcahy <marc@plbb.net>
* src/shoutmixeroutput.c (start_encoder): Only 1 "-" command line
argument needed for oggenc to encode from stdin to stdout.
2002-12-03 Marc Mulcahy <marc@plbb.net>
* src/mixerautomation.c: Removed fprintf debug statements.
* src/scheduler.c: Removed fprintf debug statements.
* php/addevents.php: Fixed typo.
2002-12-01 Matt Campbell <mattcampbell@pobox.com>
* src/urlmixerchannel.c: Now includes signal.h.
2002-12-01 Marc Mulcahy <marc@plbb.net>
* src/mixerautomation.c (mixer_automation_destroy): Don't kill the
automation thread-- it breaks things.
* src/scheduler.c (scheduler_destroy): Don't kill the scheduler
thread-- it breaks things.
* src/fileinfo.c .h (file_info_new): Re-factered FileInfo
construction-- it is now done automatically based on file extension.
* src/mp3fileinfo.c (mp3_file_info_new): Changed name to match
constructor semantics.
* src/vorbisfileinfo.c (vorbis_file_info_new): Changed name to match
constructor semantics.
* src/prs_config.c (stream_config): Added suppport for encoder
arguments.
(mixer_output_config): Added support for wave file outputs.
* src/wave.h: Definitions of wave header structures.
* src/filemixeroutput.c: Now writes proper wave files rather than
headerless raw PCM.
* src/wavefileinfo.c src/Makefile.am: Added Wave FileInfo retrieval.
* src/prs_db_builder.c (main): Changed to use new FileInfo stuff.
* src/mixer.c (mixer_main_thread): Ensure mixer is slaved to near
realtime whether a soundcard is being used or not.
(mixer_destroy): Changed order of element destruction.
2002-12-01 Matt Campbell <mattcampbell@pobox.com>
* src/mp3fileinfo.c: Fixed capitalization error that prevented PRS
from working with id3lib 3.8.x.
2002-11-30 Matt Campbell <mattcampbell@pobox.com>
* Checked in an unfinished Web interface written in PHP.
2002-11-25 Marc Mulcahy <marc@plbb.net>
* src/urlmixerchannel.c (url_mixer_channel_new): Fix stupidity.
* src/urlmixerchannel.ch Makefile.am: Added support for retrieving
streams and files via libcurl.
* src/list.c: re-formatted and fixed bug in list_reverse ().
* src/mixer.c (mixer_add_channel): Ensured that NULL channels can't
be added to the mixer.
2002-11-21 Marc Mulcahy <marc@plbb.net>
* src/list.ch (string_list_to_array): Added a function to convert a
linked list of strings to an array of strings-- handy for passing
arguments to programs.
2002-11-20 Matt Campbell <mattcampbell@pobox.com>
* configure.in src/mp3fileinfo.c: PRS should now work with both
versions of id3lib (3.7 and 3.8).
2002-11-20 Marc Mulcahy <marc@plbb.net>
* src/prs.conf: I hope it's dead now.
* src/ossmixerchannel.c (oss_mixer_channel_new): Get rid of code
duplicated in mixer_channel_new.
* src/mp3mixerchannel.c (mp3_mixer_channel_new): Get rid of code
duplicated in mixer_channel_new.
* src/vorbismixerchannel.c (vorbis_mixer_channel_new): Get rid of code
duplicated in mixer_channel_new.
* src/mixerchannel.ch (mixer_channel_new): Made parameters const.
Make mixer chanels disabled by default. Added initialization for all
struct members.
* src/mixerautomation.c (mixer_automation_next_event): Changed the
order of events in the channel creation process.
* src/prs.conf.dist: Renamed configuration file and made it generic.
it now contains examples of all possible setup options.
* src/vorbisfileinfo.c (process_vorbis_comments): Support both all
upper and all lowercase Vorbis tag field names.
* src/mp3fileinfo.c (get_mp3_file_info): Fix to build against id3lib
v3.8.1.
* configure.in: Fixed mysql Autoconf support (I think).
2002-11-19 Marc Mulcahy <marc@plbb.net>
* configure.in: Fix for MySQL build on RedHat.
2002-11-18 Matt Campbell <mattcampbell@pobox.com>
* Fixed calculation of length and audio_out values for MP3
recordings, and switched to id3lib for ID3 tag retrieval.
2002-11-16 Matt Campbell <mattcampbell@pobox.com>
* configure.in src/db.c src/db.h: Quit using mysql_config, because
that utility isn't present in slightly older versions of MySQL,
but mysql.h is in the same location on both Red Hat and Debian, so
it doesn't really matter.
* Switched to MySQL (version 3.23.x).
* src/mp3decoder.c (mp3_decoder_destroy): This function now kills
the decoder process in addition to closing the pipe.
2002-11-15 Marc Mulcahy <marc@plbb.net>
* src/prs_config.c (multiband_audio_compressor_config): Ensured that
the frequencies for the bands of the multiband compressor can't be
mis-configured.
* src/multibandaudiocompressor.c
(multiband_audio_compressor_process_data): Added declipper to the
filter stages.
2002-11-11 Marc Mulcahy <marc@plbb.net>
* src/mixerautomation.c (mixer_automation_destroy): Kill automation
thread when automation object is destroyed rather than joining it.
* src/scheduler.c (scheduler_destroy): Kill scheduler thread when
scheduler object is destroyed rather than joining it.
2002-11-10 Matt Campbell <mattcampbell@pobox.com>
* src/prs_config.c src/prs_server.c: The configuration file to be
used can now be specified as a command-line argument. If no
argument is given, prs.conf is still the default.
* src/prs.conf: Replaced Marc's stream details with more generic
place-holder values.
* Added a telnet interface so that PRS can be detached from the
terminal on which it was started but still be controlled if
desired.
2002-11-10 Marc Mulcahy <marc@plbb.net>
* src/mixerpatchpoint.c (mixer_patch_point_post_data): Fixed
mono/stereo resampling bug.
2002-11-10 Marc Mulcahy <marc@plbb.net>
* Removed src/global_data.c and src/global_data.h.
* Added src/soundcard.c and src/soundcard.h for storing and retrieving
parameters about the currently open soundcard.
* src/ossmixerchannel.c src/ossmixeroutput.c: Modified to use new
soundcard.c functions.
* src/Makefile.am: removed references to global_data.c and
global_data.h. added soundcard.c to the list of sources for
prs_server. added fileinfo.c vorbisfileinfo.c and mp3fieinfo.c to the
list of sources for prs_server.
* src/mixer.c src/mixer.h (mixer_enable_channel)
(mixer_enable_output): Added functions for enabling and disabling
channels and outputs. these are thread-safe and better than
maniuplating the MixerChannel and MixerOutput data structures directly.
* src/mixerautomation.c (mixer_automation_log_event): Add entry to log
only if the recording can be found in the database.
* src/multibandaudiocompressor.c
(multiband_audio_compressor_process_data): Fixed bug in handling
mono audio.
* src/prs_config.c (mixer_channel_config): Added ability to add
channels to the mixer in the config file. Currently ohnly works for
oss channels.
* src/prs.conf: Added oss mixer channel configuration to configuration file.
* src/prs_server.c (load_playlist): Added simple playlist loader.
* src/shoutmixeroutput.c (start_encoder): Fixed spawning of mp3 encode
for mono streams with mono buses.
2002-11-10 Matt Campbell <mattcampbell@pobox.com>
* src/fileinfo.h src/mp3fileinfo.c src/mp3fileinfo.h
src/prs_db_builder.c src/vorbisfileinfo.c src/vorbisfileinfo.h:
There are now two threshholds, one for audio_in and the other for
audio_out.
* src/mixerpatchpoint.c: Fixed resampling code so it correctly
handles the case when the channel is mono and the bus is stereo.
2002-11-09 Marc Mulcahy <marc@plbb.net>
* Checked in initial resampling support.
2002-11-04 Marc Mulcahy <marc@plbb.net>
* src/mixerautomation.c: Folded loggin back in.
2002-11-04 Matt Campbell <mattcampbell@pobox.com>
* src/mp3tech.c: Made variables static to avoid naming conflict.
2002-11-02 Matt Campbell <mattcampbell@pobox.com>
* src/db.c: The username is now quoted when a grant operation is
done. This is necessary because the username for the Web server
under Debian is www-data, which must be in quotes in PostgreSQL.
* src/prs_db_builder.c: The database builder now accepts up to
three command line arguments: the root directory of the audio
files, the username under which the Web server runs, and
optionally the category in which all imported files should be
placed.
* Added MP3 input, using mpg123 for decoding and the mp3tech.c
file from the mp3info file for parsing the ID3 tags and MP3
header.
2002-10-24 Marc Mulcahy <marc@plbb.net>
* src/prs_server.c src/shoutmixeroutput.c: Added support for
stereo/mono encoding. added support for both Vorbis and mp3 encoding.
* src/prs_config.c: Added XML configuration file rather than databse
table.
2002-10-08 Marc Mulcahy <marc@plbb.net>
* src/mixerbus.c: Added declipper to the mixer.
2002-10-08 Marc Mulcahy <marc@plbb.net>
* src/prs_server.c: Updated CVS to reflect what's on the air on Big
Planet.
2002-08-22 Marc Mulcahy <marc@plbb.net>
* src/multibandaudiocompressor.c src/multibandaudiocompressor.h:
Initial implementation of multiband compressor.
2002-08-12 Marc Mulcahy <marc@plbb.net>
* src/audiocompressor.c src/audiocompressor.h: Automatically compute
output gain.
2002-08-11 Marc Mulcahy <marc@plbb.net>
* src/audiocompressor.c: Fixed audio compressor again.
* src/scheduler.c: Fixed template change bug in scheduler.
2002-08-10 Marc Mulcahy <marc@plbb.net>
* src/audiocompressor.c src/prs_server.c: Fixed audio compressor.
2002-08-09 Marc Mulcahy <marc@plbb.net>
* src/audiofilter.c src/audiofilter.h src/Makefileam:
Added AudioFilter object.
2002-08-03 Marc Mulcahy <marc@plbb.net>
* src/db.c src/db.h src/mixerautomation.c: Added logging.
2002-08-03 Marc Mulcahy <marc@plbb.net>
* src/scheduler.c src/scheduler.h: made scheduler thread-safe.
2002-08-03 Marc Mulcahy <marc@plbb.net>
* src/mixerautomation.c: Made thread-safe.
2002-08-03 Marc Mulcay <marc@plbb.net>
* src/global_data.c src/global_data.h src/ossmixerchannel.c
src/ossmixerchannel.c: better handling for full and half duplex
sound cards.
* src/scheduler.c src/scheduler.h src/prs_server.c: added new
scheduler.
202-08-02 Marc Mulcahy <marc@plbb.net>
* src/prs_server.c: Made recording selection failures work as
0-length events.
2002-08-02 Marc Mulcahy <marc2plbb.net>
* src/mixerautomation.c src/mixerautomation.h src/mixer.c src/mixer.h:
Implemented new automation system. Events were removed from the mixer
and moved to an external Mixerautomation object. This required
changing the mixer to now allow the client to specify a time
to be notified.
2002-08-01 Marc Mulcahy <marc@plbb.net>
* src/shoutmixeroutput.c: Disable output if connection to server fails.
2002-08-01 Marc Mulcahy <marc@plbb.net>
* src/mixerautomation.c src/mixerautomation.h: Started work on new
automation system.
2002-07-29 Marc Mulcahy <marc@plbb.net>
* src/prs_server.c: Fixed end of template bug.
2002-07-29 Marc Mulcahy <marc@plbb.net>
* src/ db.c src/prs_server.c: Delete debug fprintf statements.
2002-07-29 Marc Mulcahy <marc@plbb.net>
* src/mixer.c: Made mixer_fade_channel_fade fail if a fade is
currently in progress. This allows mixer_fade_ll to take precidence.
* src/mixer.c src/db.c: Converted all internal time systems to use
standard Unix time format stored in doubles to allow less than one
second mixer timing accuracy. This gets rid of the whole slew of bugs
where the mixer crashes on day switch.
2002-07-29 Marc Mulcahy <marc@plbb.net>
* src/db.c: made template start times inclusive and template end times
non inclusive so overlapping templates don't result in problems.
2002-07-22 Marc Mulcahy <marc@plbb.net>
* src/prs_server.c: Added a signal handler for SIGUSR1. Added
support for re-configuring the shoutcast stream based on the
config database.
* src/shoutmixeroutput.c: Added shout_conn_t_free for freeing
shout_conn_t structures with dynamically allocated strings in
them. Abstracted out the code for starting and stopping the
encoder, so the stream can be dynamically re-configured. Made the
shout_thread function static. Changed the signature of the
shout_mixer_output_new function to take the output name, the rate,
the number of channels, and a pointer to a shout_conn_t structure.
Added a function called shout_mixer_output_get_connection to
return the shout_conn_t structure. added a
shout_mixer_output_set_connection to reset the shout connection--
has smarts to only restart the stream when critical parameters
like ip or port chang, restarts encoder when bitrate changes.
* src/mixer.c src/mixer.h: Renamed mixer_find_channel to
mixer_get_channel and mixer_find_output to mixer_get_output.
Exported those two functions. Added mixer_delete_channel and
mixer_delete_output.
* src/db.c src/db.h: Added support for configuration and status
tables.
* src/mixer.c: Fixed mixer_stop so it actually works. Made
mixer_destroy use mixer_stop before destroying the channels and
outputs and the mixer itself.
* src/mixeroutput.c: Fixed mixer_channel_destroy to pass the
output to the virtual method mixer_channel_free_data rather than
just the data.
* src/ossmixeroutput.c: Protect mixer_output_free_data from NULL
MixerOutput pointer.
2002-07-20 Marc Mulcahy <marc@plbb.net>
* src/db.c: Added debug message to recording_picker_select to
indicate when recording selection fails.
2002-07-19 Marc Mulcahy <marc@plbb.net>
* src/db.c: Added the following fields to the playlist_event
database table: event_name - so events can be referenced by
other events event_level - so events can contain audio level
information event_anchor_event_number - the event to which this
event is attached (anchored) event_anchor_position - 0 to
anchor to the beginning of the specified event, 1 to anchor to
the end. event_offset - time offset from anchor position
* src/db.h: Added level, anchor_event_number, and achor_position
fields corresponding to the new columns in the playlist_event
table. Added a start_time and end_time field so the last start
and end time of an event can be stored with the copy of the event
in the playlist template.
* src/db.c src/db.h: Added the list of events to the template data
structure. Made get_playlist_events_from_template static since it
is no longer needed externally-- also changed it's signature to
take a template_id rather than the entire template data structure
for efficiency. Made playlist_event_list_free static since it is
no longer needed externally. Added a function called
playlist_template+get+event, which takes a playlist_template and
an event number.
* src/db.c: Made recording_picker_new use two standard table names
(recording_exclude, artist_exclude) so that they can easily be
referenced by other parts of the app/web interface.
* src/db.h: Changed event type name to EVENT_TYPE_FADE.
* src/list.c src/list.h: Added list_get_item.
* src/mixer.c: Added support for MIXER_EVENT_TYPE_FADE_CHANNEL
events.
2002-07-14 Marc Mulcahy <marc@plbb.net>
* src/vorbismixerchannel.c: Get rid of warnings.
* src/prs_server.c: Included unistd.h to make usleep work. Cleared
mixer event structure before posting it to the mixer. Ensured that
the end time of the last event is remembered. Ensure that the
audio_in is factered into the start time of mixer events. Added
processing for playing audio from a specific path. Added cur_time
parameter to execute_playlist_template.
* src/mixeroutput.h: Changed mixer latency to .01 seconds.
* src/mixeroutput.c src/ossmixeroutput.c: Fixed warnings.
* src/mixerchannel.c: Fixed pointer arithmetic.
* src/mixer.c src/mixer.h: re-factered mutex code and made two static
functions called mixer_lock and mixer_unlock, so now all functions
needing to lock and unlock the mutex use these functions to do so.
Changed references to a variable named time to cur_time to avoid conflicts with time.h.
* src/list.c: Actually returned the computed length of the list
(which is nice since the name of the function is list_length).
* src/mixerevent.h: Changed tim to start_time and added an end_time
field to support fades.
* prs_server.c: Re-factored playlist generation to support fades and
events which aren't sequential
2002-07-13 Marc Mulcahy <marc@plbb.net>
* src/mixerchannel.h src/vorbismixerchannel.c src/mixer.c: Added an
enabled flag so mixer channels can be enabled and disabled (in the
case of files this means paused and unpaused.
2002-07-12 Marc Mulcahy <marc@plbb.net>
* src/fileinfo.c: Fixed rounding errors in finding audio out queue points.
2002-07-12 Marc Mulcahy <marc@plbb.net>
* src/mixerchannel.c src/mixerchannel.h src/vorbismixerchannel.c
src/mixer.c src/mixer.h: Added mixer channel level and fading support.
Added an end of data flag so we can appropriately dispose of dead
channels.
2002-07-09 Marc Mulcahy <marc@plbb.net
* prs_db_builder.c: An entry in the database is now updated when the
name, genre or length changes in the corresponding audio file.
2002-07-09 Marc Mulcahy <marc@plbb.net>
* src/db.c src/prs_db_builder.c: Fixed stupidity when handling
recordings not being in the database on database rebuild.
2002-07-09 Marc Mulcahy <marc@plbb.net>
* src/db.c src/db.h: Added functions to check for the existence of the
various database tables.
* src/db.c src/db.h: Consolidated the functions for creating the two
playlist-related tables into 1 function.
* src/db.c src/db.h src/prs_db_builder.c src/prs_server.c: Removed the
Info naming convention for data structure relating to database stuff
for convenience.
* fileinfo.c: Now if you pass 0 as the threshhold value, the
get_vorbis_file_info function doesn't try to find the audio_in and
audio_out values which is presumably the most time consuming part of
building the database.
* src/db.c src/db.h: Added functions for deleting recordings from the
database and finding recordings by path.
* src/prs_db_builder.c: Only updates entries in the database which
have file lengths which have changed.
2002-06-02 Marc Mulcahy <marc@plbb.net>
* Initial coding begins.