Ticket #256 (new Feature)

Opened 19 months ago

Last modified 43 hours ago

Tap operator

Reported by: danderson Owned by: admin
Priority: 1 Milestone:
Component: Liquidsoap Version:
Keywords: Cc:
Mac OSX: yes Linux: yes
NetBSD: yes Other Operating System: yes
FreeBSD: yes

Description

It would be really nice to have a 'tap' operator (to continue the analogy with sources and sinks). A tap is an operator whose availability is configurable over the telnet interface. When turned off, the source becomes unavailable (and stops pulling from the upstream source). When turned on, the operator becomes available and acts as an identity (no change to the stream).

The telnet interface can be as simple as:

tap_id.on tap_id.off tap_id.state

Change History

Changed 19 months ago by mrpingouin

You can achieve that using the mix() operator. It mixes several sources, you can interactively turn it on/off. I'm not sure how it behaves when it has no enabled input: Is it unavailable, or does it stream silence? I'm also not sure how it behaves wrt to tracks: does it preserve track limits.

I suggest that you try it and tell us what doesn't fit your needs. Then we'll see if we adapt mix() or do something new.

(Speaking of design, I'm never sure if I like the current monolithic mix(), or if I would prefer to break it into simpler pieces. The same holds for all outputs and several other operators. When I'm unsure, I choose the statu quo.)

If you like hacks you can also build you tap using a switch with a predicate that checks a mutable variable (interactive.string) and install server commands for changing that string. That would probably be fully satisfying, right? If you like that solution, close the ticket and feel free to define tap() in the utils.liq.

There is definitely more than one way to do it..

Changed 5 months ago by sim

 decoration Changed 1 year ago by admin

 bathtub Changed 1 year ago by admin

 solar system Changed 1 year ago by admin

 stair parts Changed 1 year ago by admin

 solar supply Changed 1 year ago by admin

Changed 43 hours ago by 太阳能

China is the world's commitment to implement energy-saving emission reduction targets, to enhance policy support the new energy economy strategy, accelerating the construction of solar photovoltaic technology in rural and urban areas of the application, the relevant state ministries launch solar roofs program. Solar roof planned efforts to break through the integration and solution architecture design of a lack of optical, optoelectronic products combined with low level of construction, optical and network problems, low market awareness of the problem. Solar Roofs Plan into consideration economic and social benefits and other factors, at this stage of economic development, industrial base cities to actively promote a better solar roofs, building integrated photovoltaic curtain wall and other optical model; actively support development in rural and remote areas from the net-generation, implementation of transmission to rural areas, the implementation of the national farmer-friendly policy. Solar roof planned to mobilize all sectors of society through the development of demonstration projects and promote the implementation of relevant national policies. Demonstration projects to strengthen advocacy, to expand its influence, increase market awareness, formation and development of solar photovoltaic products, a good social atmosphere; to promote the implementation of tariff and other Internet-sharing policy, the formation of policy together, amplifying the effect of policies; the optical construction applications as an important building energy efficiency content, in new construction, existing building energy-saving, actively promote the use of urban lighting. Policy limit sun roof demonstration project must be greater than 50kW, which requires at least 400 square meters of total floor area, construction is difficult to participate in the general population, eligible owners will focus on schools, hospitals and government and other public and commercial buildings. Ministry of Finance to consider subsidies, the cost of electricity can be reduced to 0.58 yuan / kWh. Whether PV electricity price electricity price in the thermal power given premium is not clear, but even without the premium, due to lower power generation cost sales price, the owners are still building solar power projects to generate electricity for personal use, replacement power purchased from power. Moreover, local governments can be expected to give additional subsidies, electricity costs will decline further  http://solar-poweronline.info/

Note: See TracTickets for help on using tickets.