Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Standards/CCSMB-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
A client will only listen to packets while the audio is being transmitted from a server
The server will communicate to the client over modem
Comment thread
EmmaKnijn marked this conversation as resolved.


## Packet
A packet consists of the following fields in a table:
- buffer: A table that contains Signed 8-bit PCM @ 48kHz audio
- station: A string that contains the name of the radio station
- title: A string that contains the song that is currently being played
- protocol: A string that contains the protocol used
- `buffer`: A table that contains Signed 8-bit PCM @ 48kHz audio
- `id`: The ID of the server sending the message
- `station`: A string that contains the name of the radio station
- `title`: A string that contains the song that is currently being played, or other relevant metadata
Comment thread
piprett marked this conversation as resolved.
Outdated
- `protocol`: A string that contains the protocol used

In order to be compliant the
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is worded a bit informally; I'd prefer it to use full sentences in bullet points or an ordered list.

We should also mention RFC 2119 if using keywords like "MUST", "SHOULD", etc.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you write an example, I feel like writing the same In order to be compliant the in 5 bullet points is a bit redundant

- protocol field must be "CCSMB-5"
Comment thread
EmmaKnijn marked this conversation as resolved.
Outdated
- client must be able to accept the buffer field
- client must be able to deal with crosstalk by allowing the user to select a station if there are multiple stations on a single channel
Comment thread
EmmaKnijn marked this conversation as resolved.
Outdated
- client must reject a packet with an invalid protocol field
- server must be able to transmit all of the fields
- client must reject a packet with an invalid `protocol` field
- server must time the packets appropriately in a way that the client is just able to play back the buffer
Comment thread
EmmaKnijn marked this conversation as resolved.
Outdated